Files
landscape-template/serverless.yml

43 lines
765 B
YAML

useDotenv: true
custom:
serverless-offline:
httpPort: 8888
corsAllowHeaders: "*"
plugins:
- serverless-offline
service: serverless-graphql
provider:
name: aws
runtime: nodejs12.x
functions:
graphql:
handler: functions/graphql/index.handler
events:
- http:
path: graphql
method: post
- http:
path: graphql
method: get
login:
handler: functions/login/login.handler
events:
- http:
path: login
method: post
- http:
path: login
method: get
logout:
handler: functions/logout/logout.handler
events:
- http:
path: logout
method: post
- http:
path: logout
method: get