Update code in endpoints/people.get.py

This commit is contained in:
Backend IM Bot 2025-03-21 20:54:50 +01:00
parent 97a060a2cf
commit 3c57907eea

13
endpoints/people.get.py Normal file
View File

@ -0,0 +1,13 @@
from fastapi import APIRouter, Depends, HTTPException
from core.database import fake_users_db
router = APIRouter()
@router.get("/people")
async def people_handler():
"""Get list of people"""
people = list(fake_users_db.values())
return {
"message": "People fetched successfully",
"data": people
}