1 import { createRouter
, createWebHistory
} from
'vue-router'
3 import AddChargingStations from
'@/components/actions/AddChargingStations.vue'
4 import SetSupervisionUrl from
'@/components/actions/SetSupervisionUrl.vue'
5 import StartTransaction from
'@/components/actions/StartTransaction.vue'
6 import ChargingStationsView from
'@/views/ChargingStationsView.vue'
7 import NotFoundView from
'@/views/NotFoundView.vue'
9 export const router
= createRouter({
10 history
: createWebHistory(),
14 name
: 'charging-stations',
16 default: ChargingStationsView
20 path
: '/add-charging-stations',
21 name
: 'add-charging-stations',
23 default: ChargingStationsView
,
24 action
: AddChargingStations
28 path
: '/set-supervision-url/:hashId/:chargingStationId',
29 name
: 'set-supervision-url',
31 default: ChargingStationsView
,
32 action
: SetSupervisionUrl
34 props
: { default: false, action
: true }
37 path
: '/start-transaction/:hashId/:chargingStationId/:connectorId',
38 name
: 'start-transaction',
40 default: ChargingStationsView
,
41 action
: StartTransaction
43 props
: { default: false, action
: true }
47 path
: '/:pathMatch(.*)*',