3 changed files with 2 additions and 14 deletions
@ -1,9 +0,0 @@ |
|||
from fastapi import FastAPI, Form |
|||
from typing_extensions import Annotated |
|||
|
|||
app = FastAPI() |
|||
|
|||
|
|||
@app.post("/login/") |
|||
async def login(username: Annotated[str, Form()], password: Annotated[str, Form()]): |
|||
return {"username": username} |
|||
Loading…
Reference in new issue