-
Notifications
You must be signed in to change notification settings - Fork 19
/
serverless.yml
49 lines (46 loc) · 822 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: rest-api
provider:
name: aws
runtime: nodejs6.10
memorySize: 128
timeout: 10
stage: dev
region: us-east-1
functions:
create:
handler: handler.create
events:
- http:
path: notes
method: post
cors: true
getOne:
handler: handler.getOne
events:
- http:
path: notes/{id}
method: get
cors: true
getAll:
handler: handler.getAll
events:
- http:
path: notes
method: get
cors: true
update:
handler: handler.update
events:
- http:
path: notes/{id}
method: put
cors: true
delete:
handler: handler.delete
events:
- http:
path: notes/{id}
method: delete
cors: true
plugins:
- serverless-offline