Skip to content

Commit c519f23

Browse files
committed
Switch to HTTP APIs by default for Go example
1 parent e56ef92 commit c519f23

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

aws-golang-simple-http-endpoint/serverless.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
service: aws-golang-simple-http-endpoint
2-
3-
frameworkVersion: ">=1.28.0 <2.0.0"
2+
frameworkVersion: '2'
43

54
provider:
65
name: aws
@@ -10,14 +9,14 @@ functions:
109
hello:
1110
handler: bin/hello
1211
events:
13-
- http:
14-
path: hello
12+
- httpApi:
13+
path: /hello
1514
method: get
1615
world:
1716
handler: bin/world
1817
events:
19-
- http:
20-
path: world
18+
- httpApi:
19+
path: /world
2120
method: get
2221

2322
package:

0 commit comments

Comments
 (0)