mirror of
https://github.com/fastapi/fastapi.git
synced 2025-12-25 23:29:34 -05:00
Co-authored-by: Yurii Motov <yurii.motov.monte@gmail.com> Co-authored-by: Motov Yurii <109919500+YuriiMotov@users.noreply.github.com>
9 lines
173 B
Python
9 lines
173 B
Python
from fastapi import FastAPI, Form
|
|
|
|
app = FastAPI()
|
|
|
|
|
|
@app.post("/login/")
|
|
async def login(username: str = Form(), password: str = Form()):
|
|
return {"username": username}
|