This website
import type { PageLoad } from './$types';
import { errorMsg, server } from '../../../../helpers';

export const load: PageLoad = async ({ fetch, params }) => {
  const u = `${server}/api/job/${params.user}/${params.repo}/${params.job}`;
  const resp = await fetch(u, { credentials: 'include' });
  if (resp.status == 200) {
    return await resp.json();
  } else {
    const y = await resp.json();
    errorMsg(resp.status, y);
  }
};