From adde196a40d4a442254f7a3e833dbb2006d10603 Mon Sep 17 00:00:00 2001 From: alexpaynex <55271826-alexpaynex@users.noreply.replit.com> Date: Wed, 18 Mar 2026 20:16:48 +0000 Subject: [PATCH] Task #7: Redirect root to Timmy UI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- artifacts/api-server/src/app.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/artifacts/api-server/src/app.ts b/artifacts/api-server/src/app.ts index 9768f4c..da1b38b 100644 --- a/artifacts/api-server/src/app.ts +++ b/artifacts/api-server/src/app.ts @@ -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;