31 lines
1.3 KiB
JavaScript
31 lines
1.3 KiB
JavaScript
import { c as config } from './config-BHx687w1.js';
|
|
import { r as redirect } from './index-Ddp2AB5f.js';
|
|
import './shared-server-i79vVjEm.js';
|
|
|
|
const load = async ({ fetch, cookies }) => {
|
|
const res = await fetch(config.api_url + "/dashboard");
|
|
if (res.status > 399 && res.status < 499) {
|
|
redirect(302, "/auth");
|
|
}
|
|
const data = await res.json();
|
|
return {
|
|
dashboard_info: data
|
|
};
|
|
};
|
|
|
|
var _page_server = /*#__PURE__*/Object.freeze({
|
|
__proto__: null,
|
|
load: load
|
|
});
|
|
|
|
const index = 4;
|
|
let component_cache;
|
|
const component = async () => component_cache ??= (await import('./_page.svelte-BR1QduIk.js')).default;
|
|
const server_id = "src/routes/(app)/+page.server.js";
|
|
const imports = ["_app/immutable/nodes/4.B75b4e2t.js","_app/immutable/chunks/scheduler.TiWp2jL2.js","_app/immutable/chunks/index.BGG1x4jY.js","_app/immutable/chunks/each.BM-upbTq.js","_app/immutable/chunks/spread.CgU5AtxT.js","_app/immutable/chunks/Icon.DZBLUDEC.js","_app/immutable/chunks/arrow-up-right.C9srnS9Z.js","_app/immutable/chunks/index.ClIX1ZeE.js","_app/immutable/chunks/index.aejygcvy.js","_app/immutable/chunks/button.BSgz0N-_.js","_app/immutable/chunks/table-row.hfNI5bZn.js"];
|
|
const stylesheets = [];
|
|
const fonts = [];
|
|
|
|
export { component, fonts, imports, index, _page_server as server, server_id, stylesheets };
|
|
//# sourceMappingURL=4-DBBkf7aF.js.map
|