-
Notifications
You must be signed in to change notification settings - Fork 5
/
serverless.yml
51 lines (46 loc) · 877 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
50
51
service: aws-node-rest-api-typescript
provider:
name: aws
runtime: nodejs12.x
environment:
NODE_ENV: dev
plugins:
- serverless-plugin-typescript
- serverless-offline
package:
exclude:
- config/.env.stg
- config/.env.pro
include:
- config/.env.dev
functions:
create:
handler: app/handler.create
events:
- http:
path: books
method: post
update:
handler: app/handler.update
events:
- http:
path: books/{id}
method: put
find:
handler: app/handler.find
events:
- http:
path: books
method: get
findOne:
handler: app/handler.findOne
events:
- http:
path: books/{id}
method: get
deleteOne:
handler: app/handler.deleteOne
events:
- http:
path: books/{id}
method: delete