-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
58 lines (52 loc) · 1.08 KB
/
serverless.yml
File metadata and controls
58 lines (52 loc) · 1.08 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
service: reduzin-backend
frameworkVersion: "2"
useDotenv: true
package:
individually: true
custom:
webpack:
webpackConfig: ./webpack.config.js
includeModules: true
plugins:
- serverless-offline
- serverless-webpack
provider:
name: aws
runtime: nodejs14.x
stage: dev
region: us-east-1
lambdaHashingVersion: 20201221
functions:
redirect:
handler: src/api/redirect/find-and-update/handler.handler
events:
- http:
path: /
method: get
- http:
path: "/{id}"
method: get
url-create:
handler: src/api/url/create/handler.handler
events:
- http:
path: /url
method: post
url-list:
handler: src/api/url/list/handler.handler
events:
- http:
path: /url
method: get
user-login:
handler: src/api/user/login/handler.handler
events:
- http:
path: /user/login
method: post
user-register:
handler: src/api/user/register/handler.handler
events:
- http:
path: /user/register
method: post