drupal-caravane/web/themes/custom/caravane/assets/js/router/router.js

29 lines
551 B
JavaScript
Raw Normal View History

2024-08-05 21:08:09 +02:00
import { createRouter, createWebHistory } from 'vue-router';
import ModaleView from '../vuejs/Modale.vue';
const routes = [
/* {
2024-10-15 10:09:10 +02:00
name: 'etape',
path: '/etapes/:title?',
component: ModaleView,
props: {id: null},
2024-10-15 10:09:10 +02:00
},
{
name: 'home',
path: '/',
component: ModaleView,
2024-10-15 10:09:10 +02:00
},
*/
// Not much to do here nah ?
{
path: '/:catchAll(.*)',
component: ModaleView,
}
2024-08-05 21:08:09 +02:00
];
const router = createRouter({
history: createWebHistory(),
routes,
});
export default router;