Files
landscape-template/serverless.yml
2022-06-02 14:15:01 +03:00

47 lines
874 B
YAML

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
cors: true
- http:
path: graphql
method: get
cors: true
login:
handler: functions/login/login.handler
events:
- http:
path: login
method: post
cors: true
- http:
path: login
method: get
cors: true
logout:
handler: functions/logout/logout.handler
events:
- http:
path: logout
method: post
cors: true
- http:
path: logout
method: get
cors: true