mirror of
https://github.com/Ku6epXBOCTuK/easy-png-tools.git
synced 2026-11-14 17:38:19 +00:00
feat: move routes to slugs
This commit is contained in:
@@ -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 };
|
||||
}
|
||||
Reference in New Issue
Block a user