-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathserverless.yml
More file actions
39 lines (35 loc) · 902 Bytes
/
serverless.yml
File metadata and controls
39 lines (35 loc) · 902 Bytes
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
service: mes-driver-service
provider:
name: aws
runtime: nodejs20.x
stage: ${opt:stage, 'dev'}
package:
individually: true
functions:
getDriverPhotograph:
handler: src/functions/getDriverPhotograph/framework/handler.handler
events:
- http:
path: 'driver/photograph/{drivingLicenceNumber?}'
method: get
getDriverSignature:
handler: src/functions/getDriverSignature/framework/handler.handler
events:
- http:
path: 'driver/signature/{drivingLicenceNumber?}'
method: get
postStandardDriver:
handler: src/functions/postStandardDriver/framework/handler.handler
events:
- http:
path: 'driver/standard'
method: post
custom:
stages:
- dev
webpack:
webpackConfig: 'webpack-sls-offline.config.js'
plugins:
- serverless-dotenv-plugin
- serverless-webpack
- serverless-offline