docs: fix wrong interface on handler parameter (#496)
This commit is contained in:
@@ -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");
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user