@@ -4,68 +4,68 @@ const router = createRouter({
44 history : createWebHistory ( import . meta. env . BASE_URL ) ,
55 routes : [
66 {
7- path : "/" ,
8- name : "home " ,
9- component : ( ) => import ( "../views/databases/DatabasesView.vue" ) ,
7+ component : ( ) => import ( "../views/auth/AuthVerifyView.vue" ) ,
8+ name : "authVerify " ,
9+ path : "/auth/verify" ,
1010 } ,
1111 {
12- path : "/databases" ,
13- name : "databases " ,
14- component : ( ) => import ( "../views/databases/DatabasesView.vue" ) ,
12+ component : ( ) => import ( "../views/auth/LoginView.vue" ) ,
13+ name : "login " ,
14+ path : "/login" ,
1515 } ,
1616 {
17- path : "/databases/new" ,
18- name : "newDatabase " ,
19- component : ( ) => import ( "../views/databases/NewDatabaseView.vue" ) ,
17+ component : ( ) => import ( "../views/brands/BrandsView.vue" ) ,
18+ name : "brands " ,
19+ path : "/brands" ,
2020 } ,
2121 {
22- path : "/databases/:id/edit" ,
23- name : "editDatabase " ,
24- component : ( ) => import ( "../views/databases/EditDatabaseView.vue" ) ,
22+ component : ( ) => import ( "../views/brands/EditBrandView.vue" ) ,
23+ name : "editBrand " ,
24+ path : "/brands/:id/edit" ,
2525 } ,
2626 {
27- path : "/ brands" ,
28- name : "brands " ,
29- component : ( ) => import ( "../views/ brands/BrandsView.vue" ) ,
27+ component : ( ) => import ( "../views/ brands/NewBrandView.vue" ) ,
28+ name : "newBrand " ,
29+ path : "/ brands/new" ,
3030 } ,
3131 {
32- path : "/brands/new" ,
33- name : "newBrand " ,
34- component : ( ) => import ( "../views/brands/NewBrandView.vue" ) ,
32+ component : ( ) => import ( "../views/databases/DatabasesView.vue" ) ,
33+ name : "databases " ,
34+ path : "/databases" ,
3535 } ,
3636 {
37- path : "/brands/:id/edit" ,
38- name : "editBrand " ,
39- component : ( ) => import ( "../views/brands/EditBrandView.vue" ) ,
37+ component : ( ) => import ( "../views/databases/DatabasesView.vue" ) ,
38+ name : "home " ,
39+ path : "/" ,
4040 } ,
4141 {
42- path : "/models" ,
43- name : "models " ,
44- component : ( ) => import ( "../views/models/ModelsView.vue" ) ,
42+ component : ( ) => import ( "../views/databases/EditDatabaseView.vue" ) ,
43+ name : "editDatabase " ,
44+ path : "/databases/:id/edit" ,
4545 } ,
4646 {
47- path : "/models/new" ,
48- name : "newModel " ,
49- component : ( ) => import ( "../views/models/NewModelView.vue" ) ,
47+ component : ( ) => import ( "../views/databases/NewDatabaseView.vue" ) ,
48+ name : "newDatabase " ,
49+ path : "/databases/new" ,
5050 } ,
5151 {
52- path : "/models/:id/edit" ,
53- name : "editModel" ,
5452 component : ( ) => import ( "../views/models/EditModelView.vue" ) ,
53+ name : "editModel" ,
54+ path : "/models/:id/edit" ,
5555 } ,
5656 {
57- path : "/login" ,
58- name : "login " ,
59- component : ( ) => import ( "../views/auth/LoginView.vue" ) ,
57+ component : ( ) => import ( "../views/models/ModelsView.vue" ) ,
58+ name : "models " ,
59+ path : "/models" ,
6060 } ,
6161 {
62- path : "/auth/verify" ,
63- name : "authVerify " ,
64- component : ( ) => import ( "../views/auth/AuthVerifyView.vue" ) ,
62+ component : ( ) => import ( "../views/models/NewModelView.vue" ) ,
63+ name : "newModel " ,
64+ path : "/models/new" ,
6565 } ,
6666 {
67- path : "/:pathMatch(.*)*" ,
6867 component : ( ) => import ( "../views/PageNotFoundView.vue" ) ,
68+ path : "/:pathMatch(.*)*" ,
6969 } ,
7070 ] ,
7171} ) ;
0 commit comments