fix(rsocials): serve campaign planner (n8n flow builder) at /campaigns
The /campaigns route was serving folk-campaign-manager (simple list view) instead of folk-campaign-planner (the drag-and-drop flow canvas). The planner was fully built but had no route. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
5ddc345341
commit
de2a1baf84
|
|
@ -523,14 +523,14 @@ routes.get("/threads", (c) => {
|
||||||
routes.get("/campaigns", (c) => {
|
routes.get("/campaigns", (c) => {
|
||||||
const space = c.req.param("space") || "demo";
|
const space = c.req.param("space") || "demo";
|
||||||
return c.html(renderShell({
|
return c.html(renderShell({
|
||||||
title: `Campaigns — rSocials | rSpace`,
|
title: `Campaign Planner — rSocials | rSpace`,
|
||||||
moduleId: "rsocials",
|
moduleId: "rsocials",
|
||||||
spaceSlug: space,
|
spaceSlug: space,
|
||||||
modules: getModuleInfoList(),
|
modules: getModuleInfoList(),
|
||||||
theme: "dark",
|
theme: "dark",
|
||||||
body: `<folk-campaign-manager space="${escapeHtml(space)}"></folk-campaign-manager>`,
|
body: `<folk-campaign-planner space="${escapeHtml(space)}"></folk-campaign-planner>`,
|
||||||
styles: `<link rel="stylesheet" href="/modules/rsocials/socials.css">`,
|
styles: `<link rel="stylesheet" href="/modules/rsocials/socials.css"><link rel="stylesheet" href="/modules/rsocials/campaign-planner.css">`,
|
||||||
scripts: `<script type="module" src="/modules/rsocials/folk-campaign-manager.js"></script>`,
|
scripts: `<script type="module" src="/modules/rsocials/folk-campaign-planner.js"></script>`,
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue