chore: cleanup some code

This commit is contained in:
Max Richter
2026-01-18 15:18:11 +01:00
parent 4217621574
commit cb89b16dd8
5 changed files with 1 additions and 13 deletions

View File

@@ -5,7 +5,6 @@ import * as registry from "$lib/node-registry";
export const prerender = true;
export const entries: EntryGenerator = async () => {
const users = await registry.getUsers();
return users.map(user => {
@@ -18,9 +17,7 @@ export const entries: EntryGenerator = async () => {
}
export const GET: RequestHandler = async function GET({ params }) {
const nodeId = `${params.user}/${params.collection}/${params.node}` as const;
try {
const node = await getNode(nodeId);
return json(node);