docs: fix some typos (#211)
Co-authored-by: hashrock <hashrock@users.noreply.github.com> Co-authored-by: Luca Casonato <hello@lcas.dev>
This commit is contained in:
co-authored by
hashrock
Luca Casonato
parent
c299d7b6a4
commit
3ff689d8f9
@@ -69,8 +69,8 @@ import { h, PageProps } from "$fresh/runtime.ts";
|
||||
import { HandlerContext, Handlers } from "$fresh/server.ts";
|
||||
|
||||
export const handler: Handlers = {
|
||||
GET(ctx: HandlerContext) {
|
||||
const resp = ctx.render();
|
||||
async GET(ctx: HandlerContext) {
|
||||
const resp = await ctx.render();
|
||||
resp.headers.set("X-Custom-Header", "Hello World");
|
||||
return resp;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user