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'
6 export const router
= createRouter({
7 history
: createWebHistory(),
11 name
: 'charging-stations',
13 default: ChargingStationsView
17 path
: '/add-charging-stations',
18 name
: 'add-charging-stations',
20 default: ChargingStationsView
,
21 action
: AddChargingStations
25 path
: '/start-transaction/:hashId/:chargingStationId/:connectorId',
26 name
: 'start-transaction',
28 default: ChargingStationsView
,
29 action
: StartTransaction
31 props
: { default: false, action
: true }