www: add versioning to docs (#1400)

This commit is contained in:
Marvin Hagemeister
2023-07-04 12:33:47 +02:00
committed by GitHub
parent efcaec3658
commit bf3e82c093
10 changed files with 566 additions and 149 deletions
+19
View File
@@ -0,0 +1,19 @@
import { MultiHandler } from "$fresh/server.ts";
export const handler: MultiHandler<void> = {
GET(_req, ctx) {
const slug = ctx.params.slug;
if (slug === "concepts/architechture") {
return new Response("", {
status: 307,
headers: { location: "/docs/concepts/architecture" },
});
}
return new Response("", {
status: 307,
headers: { location: "/docs/introduction" },
});
},
};