Skip to content

Commit

Permalink
cleanup docs/index handler
Browse files Browse the repository at this point in the history
  • Loading branch information
bhb603 committed Dec 4, 2024
1 parent 0b01dfb commit 877e376
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions www/routes/docs/index.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,10 @@
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" },
});
}
import { define } from "../../utils/state.ts";

export const handler = define.handlers({
GET(_ctx) {
return new Response("", {
status: 307,
headers: { location: "/docs/introduction" },
});
},
};
});

0 comments on commit 877e376

Please sign in to comment.