Files
landscape-template/serverless.yml
2022-06-09 00:12:07 +03:00

45 lines
808 B
YAML

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