import { createRouter, createWebHistory } from 'vue-router'; import ModaleView from '../vuejs/Modale.vue'; const routes = [ { path: '/node/:id', component: ModaleView, name: 'modale' }, { path: '/', component: ModaleView, name: 'home' }, ]; const router = createRouter({ history: createWebHistory(), routes, }); export default router;