From 068dc6903e377b5b2977c163a64d58cdfb415c4b Mon Sep 17 00:00:00 2001 From: Backend IM Bot Date: Fri, 28 Mar 2025 19:33:39 +0000 Subject: [PATCH] Update code in endpoints/login.post.py --- endpoints/login.post.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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