diff --git a/modules/rsocials/mod.ts b/modules/rsocials/mod.ts
index 3713435..f1c887a 100644
--- a/modules/rsocials/mod.ts
+++ b/modules/rsocials/mod.ts
@@ -512,54 +512,56 @@ function renderDemoFeedHTML(): string {
`;
}
-// ── Main page route ──
+// ── Path-based sub-routes ──
+
+routes.get("/scheduler", (c) => {
+ const space = c.req.param("space") || "demo";
+ return c.html(renderExternalAppShell({
+ title: `${space} — Postiz | rSpace`,
+ moduleId: "rsocials",
+ spaceSlug: space,
+ modules: getModuleInfoList(),
+ appUrl: "https://social.jeffemmett.com",
+ appName: "Postiz",
+ theme: "dark",
+ }));
+});
+
+routes.get("/feed", (c) => {
+ const space = c.req.param("space") || "demo";
+ const isDemo = space === "demo";
+ const body = isDemo ? renderDemoFeedHTML() : renderLanding();
+ const styles = isDemo
+ ? ``
+ : ``;
+ return c.html(renderShell({
+ title: `${space} — Socials Feed | rSpace`,
+ moduleId: "rsocials",
+ spaceSlug: space,
+ modules: getModuleInfoList(),
+ theme: "dark",
+ body,
+ styles,
+ }));
+});
+
+routes.get("/landing", (c) => {
+ const space = c.req.param("space") || "demo";
+ return c.html(renderShell({
+ title: `${space} — rSocials | rSpace`,
+ moduleId: "rsocials",
+ spaceSlug: space,
+ modules: getModuleInfoList(),
+ theme: "dark",
+ body: renderLanding(),
+ styles: ``,
+ }));
+});
+
+// ── Default: canvas view ──
routes.get("/", (c) => {
const space = c.req.param("space") || "demo";
- const view = c.req.query("view");
-
- if (view === "app") {
- return c.html(renderExternalAppShell({
- title: `${space} — Postiz | rSpace`,
- moduleId: "rsocials",
- spaceSlug: space,
- modules: getModuleInfoList(),
- appUrl: "https://social.jeffemmett.com",
- appName: "Postiz",
- theme: "dark",
- }));
- }
-
- if (view === "feed") {
- const isDemo = space === "demo";
- const body = isDemo ? renderDemoFeedHTML() : renderLanding();
- const styles = isDemo
- ? ``
- : ``;
- return c.html(renderShell({
- title: `${space} — Socials Feed | rSpace`,
- moduleId: "rsocials",
- spaceSlug: space,
- modules: getModuleInfoList(),
- theme: "dark",
- body,
- styles,
- }));
- }
-
- if (view === "landing") {
- return c.html(renderShell({
- title: `${space} — rSocials | rSpace`,
- moduleId: "rsocials",
- spaceSlug: space,
- modules: getModuleInfoList(),
- theme: "dark",
- body: renderLanding(),
- styles: ``,
- }));
- }
-
- // Default: canvas view
return c.html(renderShell({
title: `${space} — rSocials | rSpace`,
moduleId: "rsocials",