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

export const load: LayoutLoad = async ({ url, fetch }) => {
  let url_ = `${server}/api/settings`;
  let resp = await fetch(url_, { credentials: 'include' });
  console.log('_status_', resp.status, url);
  let y = await resp.json();
  console.log('y', y, y.is_owner);
  return y;
};