cleanup doc.js for a better export interface

Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
ngn
2025-07-24 14:27:27 +03:00
parent 84763e7ef9
commit 53a0fc3927
4 changed files with 36 additions and 32 deletions

View File

@@ -2,8 +2,8 @@ import api from "$lib/api.js";
export async function load({ fetch }) {
let projects = await api.projects(fetch);
return {
projects: null === projects ? [] : projects,
error: "",
};
}