Adding simple permission to routes

This commit is contained in:
2023-03-08 15:08:45 +01:00
parent ac3268e6c8
commit bf536fe8f7
5 changed files with 36 additions and 27 deletions

View File

@@ -107,6 +107,7 @@ fastapi_users = FastAPIUsers[User, uuid.UUID](
)
get_current_user = fastapi_users.current_user(active=True)
get_current_superuser = fastapi_users.current_user(active=True, superuser=True)
def get_auth_router():