INNER CODE UNIT · TypeScript
dashboardTabRoutes
heymrun/heym · frontend/src/router/index.ts:37
const dashboardTabRoutes = DASHBOARD_TAB_PATHS.map((tab) => ({
path: `/${tab}`,
redirect: { path: "/", query: { tab } },
}));
const router = createRouter({
history: createWebHistory(sanitizeRouterBase(import.meta.env.BASE_URL)),
routes: [
{
path: "/workflows",
redirect: { path: "/" },
},
{
path: "/chat",
redirect: { name: "chats" },
},
...dashboardTabRoutes,
{