Merge branch 'main' into dependabot/npm_and_yarn/eslint-plugin-jsdoc-48.2.0
[e-mobility-charging-stations-simulator.git] / ui / web / src / router / index.ts
index 0d250c5101a48e6402934fad6a038f7c64dac78e..bdb22503198337c01c2786bea3dc72c3156be686 100644 (file)
@@ -2,6 +2,7 @@ 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'
 
 export const router = createRouter({
   history: createWebHistory(),
@@ -21,6 +22,15 @@ export const router = createRouter({
         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',