Files
fastapi/docs_src/path_params/tutorial004_py39.py
2025-12-17 21:41:43 +01:00

9 lines
156 B
Python

from fastapi import FastAPI
app = FastAPI()
@app.get("/files/{file_path:path}")
async def read_file(file_path: str):
return {"file_path": file_path}