docs: fix deprecated type usage in example code (#2203)

Fixes deprecated example in docs.

<img width="760" alt="image"
src="https://github.com/denoland/fresh/assets/6600962/1e239f0f-0798-4ca0-b84d-d4266b6dfc31">
This commit is contained in:
Josh Simmons
2023-12-28 22:24:38 +00:00
committed by GitHub
parent a8a43ff0d4
commit 1016e7f9a1
+2 -2
View File
@@ -26,10 +26,10 @@ the handler's `render` function.
Let's look at a basic route that returns a plain text string:
```tsx routes/plain.tsx
import { HandlerContext, Handlers } from "$fresh/server.ts";
import { FreshContext, Handlers } from "$fresh/server.ts";
export const handler: Handlers = {
GET(_req: Request, _ctx: HandlerContext) {
GET(_req: Request, _ctx: FreshContext) {
return new Response("Hello World");
},
};