www: add versioning to docs (#1400)
This commit is contained in:
@@ -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" },
|
||||
});
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user