mirror of
https://github.com/fastapi/fastapi.git
synced 2026-10-19 16:45:35 -04:00
🐛 Fix path in path parameters (#272)
This commit is contained in:
1 parent
58f135ba2f
commit
703ade7967
4 files changed
+102
-2
No files matched your search
@@ -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}
|
||||
Reference in new issue
Block a user