Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloudflare Workers #4

Open
tlmoe opened this issue Jul 23, 2020 · 0 comments
Open

Cloudflare Workers #4

tlmoe opened this issue Jul 23, 2020 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@tlmoe
Copy link
Owner

tlmoe commented Jul 23, 2020

addEventListener(
  "fetch", event => {
    let url = new URL(event.request.url);
    url.host = "v2ws-comedic-dingo-ka.mybluemix.net";
    let request = new Request(url, event.request);
    event.respondWith(
      fetch(request)
    )
  }
)
@tlmoe tlmoe added the documentation Improvements or additions to documentation label Jul 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant