major: import Fresh 2.0 code (#2449)

🎉
This commit is contained in:
Marvin Hagemeister
2024-05-24 09:40:08 +02:00
committed by GitHub
parent 990357629e
commit 287929e4d2
958 changed files with 15794 additions and 28287 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
import { Handlers, PageProps } from "$fresh/server.ts";
import type { Handlers } from "@fresh/core";
import VERSIONS from "../../versions.json" with { type: "json" };
export const handler: Handlers = {
GET(req) {
GET({ req }) {
const accept = req.headers.get("accept");
let path = "/docs/concepts/updating";
if (accept && !accept.includes("text/html")) {