From d9e5a71468d23c88efc769191299c7b50ebc09e1 Mon Sep 17 00:00:00 2001 From: Manuel Trinidad <47314086+kinowashere@users.noreply.github.com> Date: Fri, 15 Jul 2022 17:38:11 +0300 Subject: [PATCH] docs: fix wrong interface on handler parameter (#496) --- docs/concepts/routes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/concepts/routes.md b/docs/concepts/routes.md index f53bccfc..bcd3c468 100644 --- a/docs/concepts/routes.md +++ b/docs/concepts/routes.md @@ -28,7 +28,7 @@ Let's look at a basic route that returns a plain text string: import { HandlerContext, Handlers } from "$fresh/server.ts"; export const handler: Handlers = { - GET(ctx: HandlerContext) { + GET(_req: Request, _ctx: HandlerContext) { return new Response("Hello World"); }, };