add updates to show bedir

This commit is contained in:
Osman Faruk Bayram 2025-05-05 20:38:37 +03:00
parent d5588dd055
commit 1d3d74d9d6
6 changed files with 118 additions and 210 deletions

View file

@ -1,7 +1,4 @@
from .models import UserProfile
from fastapi import APIRouter, Depends
from typing import Annotated
from ..auth.models import get_current_active_user
router = APIRouter(
prefix="/items",
@ -10,9 +7,7 @@ router = APIRouter(
dependencies=[],
)
@router.get('/profile', response_model=UserProfile)
async def get_user_profile(
current_user: Annotated[UserProfile, Depends(get_current_active_user)]
) -> UserProfile:
return current_user
@router.get("/")
async def get_items():
return {"message": "List of items"}