Update code in endpoints/login.post.py
This commit is contained in:
parent
e6f06a62d1
commit
068dc6903e
@ -1,9 +1,12 @@
|
|||||||
from fastapi import APIRouter, status
|
from fastapi import APIRouter, HTTPException, status
|
||||||
from typing import List
|
|
||||||
|
|
||||||
router = APIRouter()
|
router = APIRouter()
|
||||||
|
|
||||||
@router.post("/login", status_code=status.HTTP_200_OK, response_model=List[str])
|
@router.post("/login", status_code=200)
|
||||||
async def login():
|
async def login():
|
||||||
names = ["John", "Jane", "Bob", "Alice", "Mike"]
|
names = {
|
||||||
|
"first_name": "John",
|
||||||
|
"last_name": "Doe",
|
||||||
|
"middle_name": "Smith"
|
||||||
|
}
|
||||||
return names
|
return names
|
Loading…
x
Reference in New Issue
Block a user