import { createRouter, createWebHistory } from 'vue-router'
export const router = createRouter({
history: createWebHistory(),
routes: [
{
path: '/',
redirect: '/accounts',
},
{
path: '/accounts',
name: 'accounts',
component: () => import('./pages/AccountsPage.vue'),
},
{
path: '/keys',
name: 'mcpKeys',
component: () => import('./pages/McpKeysPage.vue'),
},
{
path: '/admin',
name: 'admin',
component: () => import('./pages/AdminPage.vue'),
},
{
path: '/settings',
name: 'settings',
component: () => import('./pages/SettingsPage.vue'),
},
{
path: '/:pathMatch(.*)*',
redirect: '/accounts',
},
],
})