add updates to show bedir
This commit is contained in:
parent
d5588dd055
commit
1d3d74d9d6
6 changed files with 118 additions and 210 deletions
|
|
@ -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"}
|
||||
Loading…
Add table
Add a link
Reference in a new issue