first commit

This commit is contained in:
Beyhan Oğur
2026-04-26 22:25:19 +03:00
commit 361dbef019
25 changed files with 814 additions and 0 deletions

12
app/api/routers/users.py Normal file
View File

@@ -0,0 +1,12 @@
from fastapi import APIRouter, Depends
from sqlmodel import Session
from app.api.deps import get_current_user, get_db
from app.schemas.schemas import UserRead
router = APIRouter()
@router.get("/me", response_model=UserRead)
def read_me(current_user=Depends(get_current_user)):
return current_user