-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
74 lines (65 loc) · 1.28 KB
/
serverless.yml
File metadata and controls
74 lines (65 loc) · 1.28 KB
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
service: botleg
provider:
environment: ${file(env.yml)}
memorySize: 256
name: aws
region: us-east-1
runtime: nodejs8.10
timeout: 60
package:
exclude:
- .git/**
functions:
count:
handler: handlers/count.handler
events:
- http:
path: count
method: get
cors: false
searchFirst:
handler: handlers/search.single
events:
- http:
path: search/{query}
method: get
cors:
origin: https://botleg.com
searchPaginated:
handler: handlers/search.paginated
events:
- http:
path: search/{query}/{page}
method: get
cors:
origin: https://botleg.com
commentsAll:
handler: handlers/comments.all
events:
- http:
path: comments
method: get
cors: false
commentsPost:
handler: handlers/comments.post
events:
- http:
path: comments/{id}
method: get
cors:
origin: https://botleg.com
commentsWrite:
handler: handlers/write.handler
events:
- http:
path: comments/{id}
method: post
cors:
origin: https://botleg.com
commit:
handler: handlers/commit.handler
events:
- http:
path: commit
method: post
cors: false