Setup Vue router

This commit is contained in:
2026-05-06 20:20:31 +02:00
parent 28c79ac203
commit c5a06b6ae4
2 changed files with 20 additions and 1 deletions
+18
View File
@@ -0,0 +1,18 @@
import { createRouter, createWebHistory } from 'vue-router'
import SearchView from '../views/SearchView.vue'
const routes = [
{
path: '/',
name: 'search',
component: SearchView
}
]
const router = createRouter({
history: createWebHistory(),
routes
})
export default router