add User return schema
This commit is contained in:
@@ -5,9 +5,10 @@ from src.schemas.users import UserRequest
|
||||
from src.core.settings import settings
|
||||
from src.services.auth import AuthService
|
||||
|
||||
router = APIRouter(prefix=settings.api.v1.auth, tags=['Auth'])
|
||||
router = APIRouter(prefix=settings.api.v1.auth, tags=["Auth"])
|
||||
|
||||
|
||||
@router.post(path='/signup')
|
||||
@router.post(path="/signup")
|
||||
async def registration(session: sessionDep, credential: UserRequest):
|
||||
await AuthService(session).registration(credential)
|
||||
auth = await AuthService(session).registration(credential)
|
||||
return auth
|
||||
|
||||
Reference in New Issue
Block a user