Skip to content

Commit

Permalink
Update basic_with_custom_state.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Tert0 authored Nov 21, 2024
1 parent eb4efa3 commit cd37958
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/basic_with_custom_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,7 @@ async def client_session_error_handler(_, e: ClientSessionNotInitialized):
return JSONResponse({"error": "Internal Error"}, status_code=500)


@app.get(
"/user", dependencies=[Depends(discord.requires_authorization)], response_model=User
)
@app.get("/user", dependencies=[Depends(discord.requires_authorization)], response_model=User)
async def get_user(user: User = Depends(discord.user)):
return user

Expand Down

0 comments on commit cd37958

Please sign in to comment.