-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathserverless.yaml
More file actions
39 lines (37 loc) · 765 Bytes
/
Copy pathserverless.yaml
File metadata and controls
39 lines (37 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
service: serverless-go
frameworkVersion: '>= 3.38.0'
useDotenv: true
provider:
name: aws
runtime: go1.x
region: us-east-1
stage: ${opt:stage}
functions:
api:
memorySize: 3008
timeout: 10
handler: bin/main
events:
- http:
path: /api/v1/players
method: GET
- http:
path: /api/v1/players/get/{id}
method: GET
- http:
path: /api/v1/players/getAll
method: GET
- http:
path: /api/v1/players/create
method: POST
- http:
path: /api/v1/players/update/{id}
method: PATCH
- http:
path: /api/v1/players/delete/{id}
method: DELETE
package:
patterns:
# - "!*/**"
# - bin/main
- bin/*