22 lines
392 B
TypeScript
22 lines
392 B
TypeScript
|
import { createWebHistory, createRouter } from "vue-router";
|
||
|
import Home from './components/Home.vue';
|
||
|
import Ivago from './components/Ivago.vue';
|
||
|
|
||
|
const routes = [
|
||
|
{
|
||
|
path: "/",
|
||
|
component: Home,
|
||
|
},
|
||
|
{
|
||
|
path: "/ivago",
|
||
|
component: Ivago,
|
||
|
},
|
||
|
];
|
||
|
|
||
|
const router = createRouter({
|
||
|
history: createWebHistory(),
|
||
|
routes,
|
||
|
});
|
||
|
|
||
|
export default router;
|