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