☰
Debian Codegraph
@
0.141.1-2
0.141.1-1
0.135.3-1
/
/
docs_src
/
request_forms
/
tutorial001_an_py310.py
☽
☼
docs_src/request_forms/tutorial001_an_py310.py
code
plain
raw
Expat
(c) 2018 Sebastián RamÃrez
debian/copyright
1
from typing import Annotated
2
3
from fastapi import FastAPI, Form
4
5
app = FastAPI()
6
7
8
@app.post("/login/")
9
async def login(username: Annotated[str, Form()], password: Annotated[str, Form()]):
10
return {"username": username}