File size: 300 Bytes
d0e0a14
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
from fastapi import APIRouter

from project.users.auth import fastapi_users, auth_backend

current_user = fastapi_users.current_user()
current_superuser = fastapi_users.current_user(active=True, superuser=False)

user_router = APIRouter(
    prefix='/user'
)

from project.users import models, views