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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user