-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathserverless.yml
160 lines (139 loc) · 3.68 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
useDotenv: true
custom:
serverless-offline:
httpPort: 8888
corsAllowHeaders: "*"
plugins:
- serverless-offline
service: serverless-graphql
provider:
name: aws
runtime: nodejs12.x
environment:
LOCAL: true
functions:
graphql:
handler: api/functions/graphql/index.handler
events:
- http:
path: graphql
method: post
- http:
path: graphql
method: get
# Auth Functions
# ----------------------------
get-login-url:
handler: api/functions/get-login-url/get-login-url.handler
events:
- http:
path: get-login-url
method: get
login:
handler: api/functions/login/login.handler
events:
- http:
path: login
method: get
logout:
handler: api/functions/logout/logout.handler
events:
- http:
path: logout
method: get
is-logged-in:
handler: api/functions/is-logged-in/is-logged-in.handler
events:
- http:
path: is-logged-in
method: get
request-otp:
handler: api/functions/request-otp/request-otp.handler
events:
- http:
path: request-otp
method: post
login-otp:
handler: api/functions/login-otp/login-otp.handler
events:
- http:
path: login-otp
method: post
link-email:
handler: api/functions/link-email/link-email.handler
events:
- http:
path: link-email
method: post
# Nostr-Related Functions
# ----------------------------
nostr-sign-event:
handler: api/functions/nostr-sign-event/nostr-sign-event.handler
events:
- http:
path: nostr-sign-event
method: post
nostr-confirm-event:
handler: api/functions/nostr-confirm-event/nostr-confirm-event.handler
events:
- http:
path: nostr-confirm-event
method: post
nostr-events-extra-data:
handler: api/functions/nostr-events-extra-data/nostr-events-extra-data.handler
events:
- http:
path: nostr-events-extra-data
method: post
pubkeys-to-users:
handler: api/functions/pubkeys-to-users/pubkeys-to-users.handler
events:
- http:
path: pubkeys-to-users
method: post
# Users Actions (Badges Related)
# -----------------------------
register-user-action:
handler: api/functions/register-user-action-background/register-user-action-background.handler
events:
- http:
path: register-user-action
method: post
process-pending-users-actions:
handler: api/functions/process-pending-users-actions-background/process-pending-users-actions-background.handler
events:
- http:
path: process-pending-users-actions
method: post
# Misc
# ----------------------------
sync-tournament-data-background:
handler: api/functions/sync-tournament-data-background/sync-tournament-data-background.handler
events:
- http:
path: sync-tournament-data-background
method: post
on-job-success:
handler: api/functions/on-job-success/on-job-success.handler
events:
- http:
path: on-job-success
method: post
on-queue-callback:
handler: api/functions/on-queue-callback/on-queue-callback.handler
events:
- http:
path: on-queue-callback
method: post
upload-image-url:
handler: api/functions/upload-image-url/upload-image-url.handler
events:
- http:
path: upload-image-url
method: post
test-something:
handler: api/functions/test-something/test-something.handler
events:
- http:
path: test-something
method: post