Files
fastapi/docs/src/path_params/tutorial004.py
2019-05-29 13:34:46 +04:00

9 lines
159 B
Python

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