mirror of
https://github.com/fastapi/fastapi.git
synced 2025-12-29 09:08:25 -05:00
* Fix for - [FEATURE] Remove *, where it's not needed #1234 * 🔥 Remove unnecessary arg *, * 🎨 Update docs format highlight lines Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
9 lines
179 B
Python
9 lines
179 B
Python
from fastapi import FastAPI, Form
|
|
|
|
app = FastAPI()
|
|
|
|
|
|
@app.post("/login/")
|
|
async def login(username: str = Form(...), password: str = Form(...)):
|
|
return {"username": username}
|