11 lines
223 B
Python
11 lines
223 B
Python
|
from typing import Annotated
|
||
|
|
||
|
from fastapi import FastAPI, Form
|
||
|
|
||
|
app = FastAPI()
|
||
|
|
||
|
|
||
|
@app.post("/login/")
|
||
|
async def login(username: Annotated[str, Form()], password: Annotated[str, Form()]):
|
||
|
return {"username": username}
|