20 lines
435 B
TypeScript
20 lines
435 B
TypeScript
import type { Handlers } from "@fresh/core/compat";
|
|
|
|
export const handler: Handlers<void> = {
|
|
GET(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" },
|
|
});
|
|
},
|
|
};
|