Skip to content

Commit

Permalink
[FIX] fastapi: add "PATCH" method
Browse files Browse the repository at this point in the history
  • Loading branch information
astirpe committed Apr 17, 2024
1 parent 183e5a8 commit c4f7a1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastapi/models/fastapi_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def _get_routing_info(self):
return {
"type": "fastapi",
"auth": "public",
"methods": ["GET", "POST", "PUT", "DELETE", "OPTIONS", "HEAD"],
"methods": ["GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS", "HEAD"],
"routes": [
f"{self.root_path}/",
f"{self.root_path}/<path:application_path>",
Expand Down

0 comments on commit c4f7a1b

Please sign in to comment.