12 lines
373 B
TypeScript
12 lines
373 B
TypeScript
|
|
import DashboardPage from '../pages/DashboardPage.vue';
|
||
|
|
import LoginPage from '../pages/LoginPage.vue';
|
||
|
|
import { createRouter, createWebHistory } from 'vue-router';
|
||
|
|
|
||
|
|
export const router = createRouter({
|
||
|
|
history: createWebHistory(import.meta.env.BASE_URL),
|
||
|
|
routes: [
|
||
|
|
{ path: '/', component: LoginPage },
|
||
|
|
{ path: '/dashboard', component: DashboardPage },
|
||
|
|
],
|
||
|
|
})
|