-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
53 lines (48 loc) · 925 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
52
53
org: logorcehab
app: test-dev
service: test-dev
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: users
method: post
update:
handler: app/handler.update
events:
- http:
path: users/{id}
method: patch
find:
handler: app/handler.find
events:
- http:
path: users?id=userId&phoneNumber={phoneNumber}
method: get
findOne:
handler: app/handler.findOne
events:
- http:
path: users/{id}
method: get
deleteOne:
handler: app/handler.deleteOne
events:
- http:
path: users/{id}
method: delete