Task #7: Redirect root to Timmy UI

Added two redirect routes in artifacts/api-server/src/app.ts:
- GET / → 302 redirect to /api/ui
- GET /api → 302 redirect to /api/ui

This means opening the preview URL or the root of the app immediately
lands on the Timmy UI without any manual navigation.

No changes to the UI itself, no new routes, no new files.
Verified: both / and /api return HTTP 302 with Location: /api/ui.
This commit is contained in:
alexpaynex
2026-03-18 20:16:48 +00:00
parent ab2cc06a79
commit adde196a40

View File

@@ -12,4 +12,7 @@ app.use(express.urlencoded({ extended: true }));
app.use("/api", router);
app.get("/", (_req, res) => res.redirect("/api/ui"));
app.get("/api", (_req, res) => res.redirect("/api/ui"));
export default app;