diff --git a/templates/http-js/content/src/index.js b/templates/http-js/content/src/index.js index b3a8c4ee..03a982f1 100644 --- a/templates/http-js/content/src/index.js +++ b/templates/http-js/content/src/index.js @@ -10,6 +10,6 @@ router .get("/", () => new Response("hello universe")) .get('/hello/:name', ({ name }) => `Hello, ${name}!`) -addEventListener('fetch', async (event) => { +addEventListener('fetch', (event) => { event.respondWith(router.fetch(event.request)); }); \ No newline at end of file diff --git a/templates/http-ts/content/src/index.ts b/templates/http-ts/content/src/index.ts index 5fa0f7f8..204c0352 100644 --- a/templates/http-ts/content/src/index.ts +++ b/templates/http-ts/content/src/index.ts @@ -11,6 +11,6 @@ router .get('/hello/:name', ({ name }) => `Hello, ${name}!`) //@ts-ignore -addEventListener('fetch', async (event: FetchEvent) => { +addEventListener('fetch', (event: FetchEvent) => { event.respondWith(router.fetch(event.request)); });