From eb487dea0a8b948db0cfc7c756381d8ca8b083c7 Mon Sep 17 00:00:00 2001 From: Keyemail Date: Thu, 6 Jun 2024 15:16:55 -0700 Subject: [PATCH] Starting 404 for videos --- src/router/index.js | 5 ++++- src/views/VideosPage.vue | 19 +++++++++++++++---- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 6b48d1f..c48d193 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -25,15 +25,18 @@ const routes = [ }, { path: '/:pathMatch(.*)', + name: '404', component: notFoundPage }, { path: '/videos', + name: 'video', component: videoView }, { path: '/videos/:id', - component: videosView + name: 'videos', + component: videosView } ] diff --git a/src/views/VideosPage.vue b/src/views/VideosPage.vue index 1ae5988..7d69f6a 100644 --- a/src/views/VideosPage.vue +++ b/src/views/VideosPage.vue @@ -1,8 +1,17 @@