📝 Fix code consistency in examples for Tutorial - User Guide - Path Parameters (#2158)

This commit is contained in:
nukopy authored and GitHub committed 2020-11-05 23:30:09 +01:00
1 parent 8c5efe0b4b
commit 22a5960d36
3 files changed
+9 -9

No files matched your search

+1 -1
View File
@@ -12,7 +12,7 @@ class ModelName(str, Enum):
app = FastAPI()
@app.get("/model/{model_name}")
@app.get("/models/{model_name}")
async def get_model(model_name: ModelName):
if model_name == ModelName.alexnet:
return {"model_name": model_name, "message": "Deep Learning FTW!"}