feat: add render function (#2454)

This commit is contained in:
Luca Casonato
2024-05-24 18:31:34 +02:00
committed by GitHub
parent 82d027cbcd
commit f2162d24bf
14 changed files with 123 additions and 64 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
import type { Handlers } from "@fresh/core";
import { define } from "../utils/state.ts";
import VERSIONS from "../../versions.json" with { type: "json" };
export const handler: Handlers = {
export const handler = define.handlers({
GET({ req }) {
const accept = req.headers.get("accept");
let path = "/docs/concepts/updating";
@@ -13,4 +13,4 @@ export const handler: Handlers = {
status: 307,
});
},
};
});