Skip to content

Commit

Permalink
doc: Fix wrong usage of PathParam
Browse files Browse the repository at this point in the history
  • Loading branch information
seedspirit committed Feb 6, 2025
1 parent 18fc5e9 commit 1f99b26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ai/backend/common/api_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ async def handler(headers: HeaderParam[HeaderModel]):
4. Path Parameters:
@api_handler
async def handler(path: PathModel = PathParam(PathModel)):
async def handler(path: PathParam[PathModel]):
parsed_path = path.parsed
return APIResponse.build(status_code=200, response_model=YourResponseModel(path=parsed_path))
Expand Down

0 comments on commit 1f99b26

Please sign in to comment.