Skip to content

Commit 49b8234

Browse files
committed
back to api gateway v1
1 parent adbf407 commit 49b8234

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

serverless.yml

+11-2
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,18 @@ functions:
5050
SERVICE_NAME: github-sls-rest-api
5151
SERVICE_SLUG: github
5252
events:
53-
- httpApi:
54-
method: "*"
53+
- http:
54+
path: /github
55+
method: any
56+
- http:
57+
path: /github
58+
method: options
59+
- http:
5560
path: /github/{proxy+}
61+
method: any
62+
- http:
63+
path: /github/{proxy+}
64+
method: options
5665
# - sns:
5766
# arn: ${file(serverless.config.js):topic-arn}
5867
# - sns:

0 commit comments

Comments
 (0)