diff --git a/docs/getting-started/custom-handlers.md b/docs/getting-started/custom-handlers.md index 766af258..169803df 100644 --- a/docs/getting-started/custom-handlers.md +++ b/docs/getting-started/custom-handlers.md @@ -33,7 +33,7 @@ then adds a custom header to the response before returning it: import { Handlers } from "$fresh/server.ts"; export const handler: Handlers = { - async GET(req, ctx) { + async GET(_req, ctx) { const resp = await ctx.render(); resp.headers.set("X-Custom-Header", "Hello"); return resp; @@ -60,7 +60,7 @@ response: import { Handlers } from "$fresh/server.ts"; export const handler: Handlers = { - GET(req) { + GET(_req) { const uuid = crypto.randomUUID(); return new Response(JSON.stringify(uuid), { headers: { "Content-Type": "application/json" },