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