1 import { createRouter
, createWebHistory
} from
'vue-router'
2 import ChargingStationsView from
'@/views/ChargingStationsView.vue'
3 import StartTransaction from
'@/components/actions/StartTransaction.vue'
4 import AddChargingStations from
'@/components/actions/AddChargingStations.vue'
5 import SetSupervisionUrl from
'@/components/actions/SetSupervisionUrl.vue'
6 import NotFoundView from
'@/views/NotFoundView.vue'
8 export const router
= createRouter({
9 history
: createWebHistory(),
13 name
: 'charging-stations',
15 default: ChargingStationsView
19 path
: '/add-charging-stations',
20 name
: 'add-charging-stations',
22 default: ChargingStationsView
,
23 action
: AddChargingStations
27 path
: '/set-supervision-url/:hashId/:chargingStationId',
28 name
: 'set-supervision-url',
30 default: ChargingStationsView
,
31 action
: SetSupervisionUrl
33 props
: { default: false, action
: true }
36 path
: '/start-transaction/:hashId/:chargingStationId/:connectorId',
37 name
: 'start-transaction',
39 default: ChargingStationsView
,
40 action
: StartTransaction
42 props
: { default: false, action
: true }
46 path
: '/:pathMatch(.*)*',