-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
49 lines (45 loc) · 927 Bytes
/
serverless.yml
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
40
41
42
43
44
45
46
47
48
49
service: runesapi
useDotenv: true
provider:
name: aws
runtime: nodejs12.x
timeout: 6
frameworkVersion: '2'
plugins:
- serverless-plugin-typescript
- serverless-offline
# needs more granular excluding in production as only the serverless provider npm
# package should be excluded (and not the whole node_modules directory)
package:
exclude:
- .gitignore
- .git/**
functions:
add:
handler: src/handler.add
events:
- http:
path: /add
method: POST
cors: true
find:
handler: src/handler.find
events:
- http:
path: /find
method: GET
cors: true
update:
handler: src/handler.update
events:
- http:
path: /update
method: PUT
cors: true
remove:
handler: src/handler.remove
events:
- http:
path: /remove
method: DELETE
cors: true