import { createRouter, createWebHistory } from 'vue-router'
-import ChargingStationsView from '@/views/ChargingStationsView.vue'
-import StartTransaction from '@/components/actions/StartTransaction.vue'
+
import AddChargingStations from '@/components/actions/AddChargingStations.vue'
+import SetSupervisionUrl from '@/components/actions/SetSupervisionUrl.vue'
+import StartTransaction from '@/components/actions/StartTransaction.vue'
+import ChargingStationsView from '@/views/ChargingStationsView.vue'
+import NotFoundView from '@/views/NotFoundView.vue'
export const router = createRouter({
history: createWebHistory(),
action: AddChargingStations
}
},
+ {
+ path: '/set-supervision-url/:hashId/:chargingStationId',
+ name: 'set-supervision-url',
+ components: {
+ default: ChargingStationsView,
+ action: SetSupervisionUrl
+ },
+ props: { default: false, action: true }
+ },
{
path: '/start-transaction/:hashId/:chargingStationId/:connectorId',
name: 'start-transaction',
action: StartTransaction
},
props: { default: false, action: true }
+ },
+ {
+ name: 'not-found',
+ path: '/:pathMatch(.*)*',
+ components: {
+ default: NotFoundView
+ }
}
]
})