31 lines
1.3 KiB
JavaScript
31 lines
1.3 KiB
JavaScript
|
import { c as config } from './config-DeQcbWtq.js';
|
||
|
import { r as redirect } from './index-Ddp2AB5f.js';
|
||
|
import 'dotenv';
|
||
|
|
||
|
const load = async ({ fetch, cookies }) => {
|
||
|
const res = await fetch(config.api_url + "/dashboard");
|
||
|
if (res.status > 399 && res.status < 499) {
|
||
|
redirect(302, "/app/auth");
|
||
|
}
|
||
|
const data = await res.json();
|
||
|
return {
|
||
|
dashboard_info: data
|
||
|
};
|
||
|
};
|
||
|
|
||
|
var _page_server = /*#__PURE__*/Object.freeze({
|
||
|
__proto__: null,
|
||
|
load: load
|
||
|
});
|
||
|
|
||
|
const index = 5;
|
||
|
let component_cache;
|
||
|
const component = async () => component_cache ??= (await import('./_page.svelte-DGISvNVf.js')).default;
|
||
|
const server_id = "src/routes/app/(app)/+page.server.js";
|
||
|
const imports = ["_app/immutable/nodes/5.BX4I0uDZ.js","_app/immutable/chunks/scheduler.lbjRT0Rl.js","_app/immutable/chunks/index.CaCtjzNU.js","_app/immutable/chunks/each.DOzsyxQl.js","_app/immutable/chunks/spread.CgU5AtxT.js","_app/immutable/chunks/Icon.BJIkZJEf.js","_app/immutable/chunks/arrow-up-right.yuqN7cPn.js","_app/immutable/chunks/index.B3mWxGlt.js","_app/immutable/chunks/index.DJbdiDqX.js","_app/immutable/chunks/button.DX8b0Nu3.js","_app/immutable/chunks/table-row.x0N_Rq8P.js"];
|
||
|
const stylesheets = [];
|
||
|
const fonts = [];
|
||
|
|
||
|
export { component, fonts, imports, index, _page_server as server, server_id, stylesheets };
|
||
|
//# sourceMappingURL=5-BO55JYVM.js.map
|