Nirvik Ghosh ff01f27ea7 added headers to the self-serve template
added headers in enterprise template
2018-08-24 14:27:51 -05:00

28 lines
544 B
YAML

service:
name: hello-world
config:
accountId: CLOUDFLARE_ACCOUNT_ID
zoneId: CLOUDFLARE_ZONE_ID
workers:
hello:
routes:
- example.com/hello/*
provider:
name: cloudflare
plugins:
- serverless-cloudflare-workers
functions:
helloWorld:
worker: hello
script: helloWorld # there must be a file called helloWorld.js
events:
- http:
url: example.com/hello/user
method: GET
headers:
foo: bar
x-client-data: value