app.routers package¶
Submodules¶
app.routers.api module¶
app.routers.depends module¶
-
app.routers.depends.get_current_active_superuser(current_user: User =
Depends(get_current_user)
) User [source]¶ Get the currently active superuser.
-
app.routers.depends.get_current_active_user(current_user: User =
Depends(get_current_user)
) User [source]¶ Get the currently active user.
-
app.routers.depends.get_current_user(db: Session =
Depends(get_db)
, token: str =Depends(OAuth2PasswordBearer)
) User [source]¶ Get the current user (via the token from the jwt)
And fail if not authenticated or expired.
- app.routers.depends.get_db() Generator [source]¶
Get the database in a context so we can then close it.
app.routers.views module¶
Module contents¶
Last update:
Mar 10, 2024