diff --git a/endpoints/people.get.py b/endpoints/people.get.py new file mode 100644 index 0000000..7524cbd --- /dev/null +++ b/endpoints/people.get.py @@ -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 + } \ No newline at end of file