Add Router

This commit is contained in:
2026-05-14 12:12:36 +02:00
parent 8d93ba2638
commit 25958bf7bb
+7 -6
View File
@@ -17,18 +17,19 @@ limitations under the License.
import { createRouter, createWebHistory } from 'vue-router' import { createRouter, createWebHistory } from 'vue-router'
import SearchView from '../views/SearchView.vue' import SearchView from '../views/SearchView.vue'
import NotFound from '../views/NotFound.vue'
const routes = [ const routes = [
{ {
path: '/', path: '/',
name: 'search', name: 'search',
component: SearchView component: SearchView
} },
{
path: '/:pathMatch(.*)*',
name: 'not-found',
component: NotFound
},
] ]
const router = createRouter({
history: createWebHistory(),
routes
})
export default router export default router