Debian Codegraph @

docs_src/path_params/tutorial004_py310.py

raw
1 from fastapi import FastAPI
2
3 app = FastAPI()
4
5
6 @app.get("/files/{file_path:path}")
7 async def read_file(file_path: str):
8 return {"file_path": file_path}