File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 22{% when "hono" %}
33// For Hono documentation refer to https://hono.dev/docs/
44import { Hono } from 'hono';
5+ import { fire } from "hono/service-worker"
56import { logger } from 'hono/logger';
67
78let app = new Hono();
@@ -20,7 +21,7 @@ app.get('/hello/:name', (c) => {
2021 return c.json({ message: `Hello, ${c.req.param('name')}` })
2122});
2223
23- app. fire();
24+ fire(app );
2425{% when "itty" %}
2526// For AutoRouter documentation refer to https://itty.dev/itty-router/routers/autorouter
2627import { AutoRouter } from 'itty-router';
Original file line number Diff line number Diff line change 22{% when "hono" %}
33// For Hono documentation refer to https://hono.dev/docs/
44import { Hono } from 'hono';
5+ import { fire } from "hono/service-worker"
56import type { Context, Next } from 'hono'
67import { logger } from 'hono/logger';
78
@@ -21,7 +22,7 @@ app.get('/hello/:name', (c: Context) => {
2122 return c.json({ message: `Hello, ${c.req.param('name')}!` })
2223});
2324
24- app. fire();
25+ fire(app );
2526{% when "itty" %}
2627// For AutoRouter documentation refer to https://itty.dev/itty-router/routers/autorouter
2728import { AutoRouter } from 'itty-router';
You can’t perform that action at this time.
0 commit comments