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

21 lines
958 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 PublishManagementView from "./views/PublishManagementView.vue";
export const router = createRouter({
history: createWebHashHistory(),
routes: [
{ path: "/", name: "home", component: HomeView },
{ path: "/publish-management", name: "publish-management", component: PublishManagementView },
{ path: "/tasks", redirect: "/publish-management" },
{ 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 },
],
});