Skip to content

Commit

Permalink
chore: make /admin/ redirect to /admin/users/ #356
Browse files Browse the repository at this point in the history
  • Loading branch information
bsilkyn committed May 15, 2024
1 parent 51809de commit 6996d5e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
3 changes: 1 addition & 2 deletions frontend/src/router/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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' },
],
Expand Down
9 changes: 0 additions & 9 deletions frontend/src/views/admin/AdminView.vue

This file was deleted.

0 comments on commit 6996d5e

Please sign in to comment.