-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
67 lines (62 loc) · 1.55 KB
/
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
service: caloteiros-service
frameworkVersion: '3'
plugins:
- serverless-esbuild
- serverless-offline
- serverless-offline-watcher
custom:
useDotenv: true
serverless-offline:
httpPort: 4000
serverless-offline-watcher:
- path:
- src/**/*.ts
command: echo "Getted an update, refreshing..."
provider:
name: aws
runtime: nodejs18.x
package:
individually: true
functions:
admin-register:
handler: src/controllers/service-owner/register-service-owner.handler
events:
- http:
path: admin/register
method: post
admin-auth-qr:
handler: src/controllers/gw/proxy-wp-auth-qr.handler
events:
- http:
path: admin/qr
method: get
admin-current-session:
handler: src/controllers/gw/proxy-wp-current-session.handler
events:
- http:
path: admin/session
method: get
charge-register:
handler: src/controllers/charge/register-charge.handler
events:
- http:
path: charge/register
method: post
charge-add-team:
handler: src/controllers/charge/register-team-to-charge.handler
events:
- http:
path: charge/{chargeId}/add-team
method: post
charge-call:
handler: src/controllers/cron/send-message-to-team.handler
events:
- http:
path: charge/{chargeId}/call
method: post
list-service-owner-charges:
handler: src/controllers/charge/list-service-owner-charges.handler
events:
- http:
path: charge/list
method: get