mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-22 07:46:15 -04:00
18 lines
384 B
TypeScript
18 lines
384 B
TypeScript
![]() |
import { createRouter, createWebHistory } from 'vue-router';
|
||
|
import HomePage from './pages/Home.page.vue';
|
||
|
import { tools } from './tools';
|
||
|
|
||
|
const router = createRouter({
|
||
|
history: createWebHistory(import.meta.env.BASE_URL),
|
||
|
routes: [
|
||
|
{
|
||
|
path: '/',
|
||
|
name: 'home',
|
||
|
component: HomePage,
|
||
|
},
|
||
|
...Object.values(tools).flat(),
|
||
|
],
|
||
|
});
|
||
|
|
||
|
export default router;
|