feat: move routes to slugs

This commit is contained in:
2026-09-27 16:35:27 +05:00
parent 9776e1d325
commit d09c954694
8 changed files with 25 additions and 26 deletions
+11
View File
@@ -0,0 +1,11 @@
import { PAGES } from "$lib/registry";
export const prerender = true;
export function entries() {
return PAGES.map((page) => ({ slug: page.slug }));
}
export function load({ params }: { params: { slug: string } }) {
return { slug: params.slug };
}