Files
geo/apps/desktop-client/src/renderer/routes.ts
T

20 lines
839 B
TypeScript
Raw Normal View History

import { createRouter, createWebHashHistory } from "vue-router";
import AccountsView from "./views/AccountsView.vue";
import AiPlatformsView from "./views/AiPlatformsView.vue";
import DiagnosticsView from "./views/DiagnosticsView.vue";
import HomeView from "./views/HomeView.vue";
import TasksView from "./views/TasksView.vue";
export const router = createRouter({
history: createWebHashHistory(),
routes: [
{ path: "/", name: "home", component: HomeView },
{ path: "/tasks", name: "tasks", component: TasksView },
{ path: "/media-platforms", name: "media-platforms", component: AccountsView },
{ path: "/ai-platforms", name: "ai-platforms", component: AiPlatformsView },
{ path: "/accounts", redirect: "/media-platforms" },
{ path: "/diagnostics", name: "diagnostics", component: DiagnosticsView },
],
});