This commit is contained in:
eko
2025-11-27 21:30:39 +07:00
parent 0e85aa93a2
commit bcb8b5fa18
2 changed files with 30 additions and 1 deletions
+4
View File
@@ -17,6 +17,9 @@ export const _ = {
res.setHeader("Access-Control-Allow-Origin", "*");
res.setHeader("Access-Control-Allow-Headers", "content-type");
const gz = g.deploy.content;
const parts = req.params._.split("/");
const action = {
@@ -57,6 +60,7 @@ export const _ = {
let layout = null as null | SinglePage;
for (const l of gz.layouts) {
console.log(`[DEBUG] _prasi route layout: ${l.id}, content_tree: ${l.content_tree}`);
if (!layout) layout = l;
if (l.is_default_layout) layout = l;
}