Refine TS and linter configuration
[e-mobility-charging-stations-simulator.git] / src / ui / web / src / router / index.ts
1 import { createRouter, createWebHistory } from 'vue-router';
2 import type { RouteRecordRaw } from 'vue-router';
3 import ChargingStationsView from '@/views/ChargingStationsView.vue';
4
5 const routes: Array<RouteRecordRaw> = [
6 {
7 path: '/',
8 name: 'charging-stations',
9 component: ChargingStationsView,
10 },
11 ];
12
13 const router = createRouter({
14 history: createWebHistory(process.env.BASE_URL),
15 routes,
16 });
17
18 export default router;