|uh wot e41d3d37a3||2 weeks ago|
|dist||2 weeks ago|
|.gitignore||5 months ago|
|.prettierrc||5 months ago|
|LICENSE||5 months ago|
|README.md||5 months ago|
|index.js||2 weeks ago|
|package.json||3 weeks ago|
|router.js||5 months ago|
|wrangler.toml||5 months ago|
Selects the logic to respond to requests based on the
request method and URL. Can be used with REST APIs or apps that require basic routing logic.
index.js is the content of the Workers script.
You can use wrangler to generate a new Cloudflare Workers project based on this template by running the following command from your terminal:
wrangler generate myapp https://github.com/cloudflare/worker-template-router
Before publishing your code you need to edit
wrangler.toml file and add your Cloudflare
account_id - more information about publishing your code can be found in the documentation.
Once you are ready, you can publish your code by running the following command:
To deploy using serverless add a