diff --git a/endpoints/login.post.py b/endpoints/login.post.py index 4a0049d..ba17352 100644 --- a/endpoints/login.post.py +++ b/endpoints/login.post.py @@ -1,9 +1,12 @@ -from fastapi import APIRouter, status -from typing import List +from fastapi import APIRouter, HTTPException, status router = APIRouter() -@router.post("/login", status_code=status.HTTP_200_OK, response_model=List[str]) +@router.post("/login", status_code=200) async def login(): - names = ["John", "Jane", "Bob", "Alice", "Mike"] + names = { + "first_name": "John", + "last_name": "Doe", + "middle_name": "Smith" + } return names \ No newline at end of file