From 25958bf7bb9be424be1d2b13d3825c16ba294978 Mon Sep 17 00:00:00 2001 From: "johannes.vos" Date: Thu, 14 May 2026 12:12:36 +0200 Subject: [PATCH] Add Router --- src/router/index.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 74cc205..a493844 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -17,18 +17,19 @@ limitations under the License. import { createRouter, createWebHistory } from 'vue-router' import SearchView from '../views/SearchView.vue' +import NotFound from '../views/NotFound.vue' const routes = [ { path: '/', name: 'search', component: SearchView - } + }, + { + path: '/:pathMatch(.*)*', + name: 'not-found', + component: NotFound + }, ] -const router = createRouter({ - history: createWebHistory(), - routes -}) - export default router \ No newline at end of file