Skip to content

Commit

Permalink
Revert CORS and fix base_path
Browse files Browse the repository at this point in the history
  • Loading branch information
fulder committed Oct 29, 2021
1 parent de9f168 commit f9052cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deploy/lib/watch_history.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ def _create_gateway(self):

routes = {
"watch_histories": {
"method": ["ANY"],
"method": ["GET", "POST", "PUT", "DELETE"],
"route": "/{proxy+}",
"target_lambda": self.lambdas["api-watch_histories"]
},
Expand Down
2 changes: 1 addition & 1 deletion src/lambdas/api/watch_histories/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ def parse_token(request: Request, call_next):
return call_next(request)


handle = Mangum(app, api_gateway_base_path="/prod/")
handle = Mangum(app, api_gateway_base_path="/prod")

0 comments on commit f9052cd

Please sign in to comment.