Commit | Line | Data |
---|---|---|
1 | import { createRouter, createWebHistory, type RouteRecordRaw } from 'vue-router'; | |
2 | import ChargingStationsView from '@/views/ChargingStationsView.vue'; | |
3 | ||
4 | const routes: RouteRecordRaw[] = [ | |
5 | { | |
6 | path: '/', | |
7 | name: 'charging-stations', | |
8 | component: ChargingStationsView, | |
9 | }, | |
10 | ]; | |
11 | ||
12 | const router = createRouter({ | |
13 | history: createWebHistory(process.env.BASE_URL), | |
14 | routes, | |
15 | }); | |
16 | ||
17 | export default router; |