mirror of
https://github.com/fastapi/fastapi.git
synced 2026-01-04 04:00:27 -05:00
🐛 Fix path in path parameters (#272)
This commit is contained in:
committed by
GitHub
parent
58f135ba2f
commit
703ade7967
8
docs/src/path_params/tutorial004.py
Normal file
8
docs/src/path_params/tutorial004.py
Normal 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}
|
||||
Reference in New Issue
Block a user