Update code in endpoints/login.post.py

This commit is contained in:
Backend IM Bot 2025-03-28 19:33:39 +00:00
parent e6f06a62d1
commit 068dc6903e

View File

@ -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