🐛 Fix path in path parameters (#272)

This commit is contained in:
Sebastián Ramírez
2019-05-29 13:34:46 +04:00
committed by GitHub
parent 58f135ba2f
commit 703ade7967
4 changed files with 102 additions and 2 deletions

View File

@@ -0,0 +1,8 @@
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}