feat: Allow passing props to renderNotFound method (#1310)

This commit is contained in:
Kamil Ogórek
2023-06-16 17:12:01 +02:00
committed by GitHub
parent 12fc103daa
commit d5a8692b78
5 changed files with 23 additions and 6 deletions
+3 -1
View File
@@ -2,6 +2,8 @@ import { Handlers } from "../../../server.ts";
export const handler: Handlers = {
GET(_req, ctx) {
return ctx.renderNotFound();
return ctx.renderNotFound({
hello: "Dino",
});
},
};