2024-05-29 19:31:10 +00:00
|
|
|
import { c as config } from './config-BHx687w1.js';
|
2024-05-29 18:43:41 +00:00
|
|
|
import { e as error } from './index-Ddp2AB5f.js';
|
2024-05-29 19:31:10 +00:00
|
|
|
import './shared-server-i79vVjEm.js';
|
2024-05-29 18:43:41 +00:00
|
|
|
|
|
|
|
async function load(event) {
|
|
|
|
const result = await fetch(config.api_url + "/blog/article?slug=" + event.params.article_id).then((x) => x.json());
|
|
|
|
if (!result.article)
|
|
|
|
error(404);
|
|
|
|
return {
|
|
|
|
...result
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
var _page_server = /*#__PURE__*/Object.freeze({
|
|
|
|
__proto__: null,
|
|
|
|
load: load
|
|
|
|
});
|
|
|
|
|
2024-07-21 13:35:30 +00:00
|
|
|
const index = 11;
|
2024-05-29 18:43:41 +00:00
|
|
|
let component_cache;
|
2024-06-23 09:25:48 +00:00
|
|
|
const component = async () => component_cache ??= (await import('./_page.svelte-nUEHCCLH.js')).default;
|
2024-05-29 18:43:41 +00:00
|
|
|
const server_id = "src/routes/site/[site_id]/[article_id]/+page.server.js";
|
2024-07-21 13:35:30 +00:00
|
|
|
const imports = ["_app/immutable/nodes/11.DN7PJrP1.js","_app/immutable/chunks/scheduler.Nb9dF4RD.js","_app/immutable/chunks/index.aIvb1r_w.js","_app/immutable/chunks/each.DmwFL-7U.js","_app/immutable/chunks/spread.CgU5AtxT.js"];
|
|
|
|
const stylesheets = ["_app/immutable/assets/11.w1GLX82u.css"];
|
2024-05-29 18:43:41 +00:00
|
|
|
const fonts = [];
|
|
|
|
|
|
|
|
export { component, fonts, imports, index, _page_server as server, server_id, stylesheets };
|
2024-07-21 13:35:30 +00:00
|
|
|
//# sourceMappingURL=11-DjuRXEaB.js.map
|