Skip to content

Commit

Permalink
default route bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jneeee committed Dec 4, 2022
1 parent 2e5a4ff commit 0619758
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/webx/templates/base.html
Expand Up @@ -12,6 +12,7 @@
<table cellpadding="2" cellspacing="0" border="0">
<tbody><tr><td><span class="MenuCurrent">Home</span></td></tr>
<tr><td><a href="/task" class="MenuLink">Task list</a></td></tr>
<tr><td><a href="/db" class="MenuLink">Quary db</a></td></tr>
</tbody></table>
<table cellpadding="2" cellspacing="0" border="0" width="100%">
<tbody><tr><td><hr></td></tr>
Expand Down
7 changes: 5 additions & 2 deletions template.yml
Expand Up @@ -56,9 +56,9 @@ Resources:
Properties:
ApiId: !Ref HttpApi
# route all path to one endpoint.
Path: $default
Method: ANY
TimeoutInMillis: 15000
Method: GET
Path: /
# https://docs.aws.amazon.com/zh_cn/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html
PayloadFormatVersion: "2.0"
RouteSettings:
Expand All @@ -74,6 +74,9 @@ Resources:
Format: $context.requestId
DefaultRouteSettings:
ThrottlingBurstLimit: 200
RouteSettings:
GET /:
ThrottlingBurstLimit: 500
StageVariables:
StageVar: Value
FailOnWarnings: true
Expand Down

0 comments on commit 0619758

Please sign in to comment.