import { loadRepoTree } from "$lib/api/repoIndex";
import type { PageLoad } from "./$types";

// the rest param arrives decoded and joined, so it is the path as git knows it
export const load: PageLoad = async (event) => {
	const parent = await event.parent();
	return loadRepoTree(event, parent, event.params.ref, event.params.path);
};
