Move web ui code in its own directory
[e-mobility-charging-stations-simulator.git] / ui / web / src / router / index.ts
CommitLineData
6c1761d4
JB
1import { createRouter, createWebHistory } from 'vue-router';
2import type { RouteRecordRaw } from 'vue-router';
32de5a57
LM
3import ChargingStationsView from '@/views/ChargingStationsView.vue';
4
5f7e72c1 5const routes: RouteRecordRaw[] = [
32de5a57
LM
6 {
7 path: '/',
8 name: 'charging-stations',
9 component: ChargingStationsView,
10 },
11];
12
13const router = createRouter({
14 history: createWebHistory(process.env.BASE_URL),
15 routes,
16});
17
18export default router;