[rewrite] Updated backend structure a bit and started working on registration

This commit is contained in:
Thastertyn committed 2025-02-23 21:14:23 +01:00
1 parent f0c378b20f
commit 5d12391635
17 files changed
+832 -86

No files matched your search

+6 -2
View File
@@ -1,5 +1,9 @@
from fastapi import APIRouter, Body
from app.schemas.user_register_schema import UserRegisterSchema
from app.services.user_service import create_user
router = APIRouter(
prefix="/user",
tags=["User"]
@@ -22,8 +26,8 @@ async def logout():
@router.post("/register", summary="Register new user")
async def register(data: dict = Body(...)):
raise NotImplementedError("register() needs to be implemented.")
async def register(user_data: UserRegisterSchema):
create_user(user_data)
@router.put("/update", summary="Update user details")