Files
sweet/www/routes/docs/index.tsx
T
Luca Casonato c3ec742a65 feat: import fresh from fresh (#2479)
Instead of importing as `@fresh/core`.
2024-06-05 14:51:35 +02:00

20 lines
429 B
TypeScript

import type { Handlers } from "fresh/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" },
});
},
};