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}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'home',
|
|
|
|
path: '/',
|
|
|
|
component: ModaleView
|
|
|
|
},
|
2024-08-05 21:08:09 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
const router = createRouter({
|
|
|
|
history: createWebHistory(),
|
|
|
|
routes,
|
|
|
|
});
|
|
|
|
|
|
|
|
export default router;
|