Skip to content

Commit 3c43d98

Browse files
authored
docs: update HandlerContext -> FreshContext (#3092)
'HandlerContext' is deprecated.deno-ts(6385)
1 parent e269992 commit 3c43d98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/latest/concepts/routes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ In the below example, a custom handler is used to add a custom header to the
6868
response after rendering the page component.
6969

7070
```tsx routes/html.tsx
71-
import { HandlerContext, Handlers, PageProps } from "$fresh/server.ts";
71+
import { FreshContext, Handlers, PageProps } from "$fresh/server.ts";
7272

7373
export const handler: Handlers = {
74-
async GET(_req: Request, ctx: HandlerContext) {
74+
async GET(_req: Request, ctx: FreshContext) {
7575
const resp = await ctx.render();
7676
resp.headers.set("X-Custom-Header", "Hello World");
7777
return resp;

0 commit comments

Comments
 (0)