{"id":20957566,"url":"https://github.com/ahmed-alnaqa/cloudflare-gateway","last_synced_at":"2025-03-24T10:20:14.348Z","repository":{"id":96671332,"uuid":"334532498","full_name":"ahmed-alnaqa/cloudflare-gateway","owner":"ahmed-alnaqa","description":null,"archived":false,"fork":false,"pushed_at":"2021-01-30T23:22:11.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T06:14:23.807Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ahmed-alnaqa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-30T23:21:28.000Z","updated_at":"2022-02-23T15:07:09.000Z","dependencies_parsed_at":"2023-06-06T11:00:39.645Z","dependency_job_id":null,"html_url":"https://github.com/ahmed-alnaqa/cloudflare-gateway","commit_stats":null,"previous_names":["ahmed-alnaqa/cloudflare-gateway","ahmedalnaqaa/cloudflare-gateway"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmed-alnaqa%2Fcloudflare-gateway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmed-alnaqa%2Fcloudflare-gateway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmed-alnaqa%2Fcloudflare-gateway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmed-alnaqa%2Fcloudflare-gateway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahmed-alnaqa","download_url":"https://codeload.github.com/ahmed-alnaqa/cloudflare-gateway/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245249210,"owners_count":20584497,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T01:36:13.037Z","updated_at":"2025-03-24T10:20:14.321Z","avatar_url":"https://github.com/ahmed-alnaqa.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Router\n\nSelects 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.\n\n[`index.js`](https://github.com/cloudflare/worker-template-router/blob/master/index.js) is the content of the Workers script.\n\n#### Wrangler\n\nYou can use [wrangler](https://github.com/cloudflare/wrangler) to generate a new Cloudflare Workers project based on this template by running the following command from your terminal:\n\n```\nwrangler generate myapp https://github.com/cloudflare/worker-template-router\n```\n\nBefore 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](https://workers.cloudflare.com/docs/quickstart/configuring-and-publishing/).\n\nOnce you are ready, you can publish your code by running the following command:\n\n```\nwrangler publish\n```\n\n#### Serverless\n\nTo deploy using serverless add a [`serverless.yml`](https://serverless.com/framework/docs/providers/cloudflare/) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmed-alnaqa%2Fcloudflare-gateway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahmed-alnaqa%2Fcloudflare-gateway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmed-alnaqa%2Fcloudflare-gateway/lists"}