This repository was archived by the owner on Nov 15, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
65 lines (65 loc) · 1.47 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
service: communityfund
plugins:
- serverless-webpack
provider:
name: aws
runtime: nodejs4.3
profile: serverless_communityfund
region: us-east-1
functions:
authSMS:
handler: routes.smsAuth
events:
- http:
path: auth/sms
method: post
integration: lambda
cors: true
authValidate:
handler: routes.validateAuth
events:
- http:
path: auth/validate
method: post
integration: lambda
cors: true
listSubmission:
handler: routes.listSubmission
events:
- http:
path: submission
method: get
integration: lambda
cors: true
createSubmission:
handler: routes.createSubmission
events:
- http:
path: submission
method: post
integration: lambda
cors: true
oneSubmission:
handler: routes.oneSubmission
events:
- http:
path: submission/{id}
method: get
integration: lambda
cors: true
request:
parameters:
paths:
id: false
voteSubmission:
handler: routes.voteSubmission
events:
- http:
path: submission/{id}/vote
method: put
integration: lambda
cors: true
request:
parameters:
paths:
id: false