import type { PageLoad } from './$types';
import { server } from '../../../helpers';

export const load: PageLoad = async ({ fetch, params }) => {
  const url = `${server}/api/admin/${params.user}/${params.repo}`
  console.log("URL", url)
  const resp = await fetch(url);
  const y = await resp.json();
  console.log('y', y);
  return y;
};