From 6996d5e313fbf174802f4327dbdeb5692571a160 Mon Sep 17 00:00:00 2001 From: bsilkyn Date: Mon, 13 May 2024 20:16:39 +0200 Subject: [PATCH] chore: make /admin/ redirect to /admin/users/ #356 --- frontend/src/router/router.ts | 3 +-- frontend/src/views/admin/AdminView.vue | 9 --------- 2 files changed, 1 insertion(+), 11 deletions(-) delete mode 100644 frontend/src/views/admin/AdminView.vue diff --git a/frontend/src/router/router.ts b/frontend/src/router/router.ts index 7ba5863d..d47ccc7e 100644 --- a/frontend/src/router/router.ts +++ b/frontend/src/router/router.ts @@ -19,7 +19,6 @@ import CreateProjectView from '@/views/projects/CreateProjectView.vue'; import UpdateProjectView from '@/views/projects/UpdateProjectView.vue'; import SearchCourseView from '@/views/courses/SearchCourseView.vue'; import SubmissionView from '@/views/submissions/SubmissionView.vue'; -import AdminView from '@/views/admin/AdminView.vue'; import UsersView from '@/views/admin/UsersView.vue'; import ProjectsView from '@/views/projects/ProjectsView.vue'; import DockerImagesView from '@/views/admin/DockerImagesView.vue'; @@ -156,7 +155,7 @@ const routes: RouteRecordRaw[] = [ path: '/admin/', beforeEnter: AdminGuard, children: [ - { path: '', component: AdminView, name: 'admin' }, + { path: '', redirect: { name: 'admin-users' } }, { path: 'users', component: UsersView, name: 'admin-users' }, { path: 'docker-images', component: DockerImagesView, name: 'admin-dockerImages' }, ], diff --git a/frontend/src/views/admin/AdminView.vue b/frontend/src/views/admin/AdminView.vue deleted file mode 100644 index 3d3b29da..00000000 --- a/frontend/src/views/admin/AdminView.vue +++ /dev/null @@ -1,9 +0,0 @@ - - - - -