Skip to content

Commit

Permalink
fix duplicate named routes
Browse files Browse the repository at this point in the history
  • Loading branch information
3vorp committed Apr 7, 2024
1 parent ae62f04 commit 976274f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,6 @@ const ALL_TABS = [
{
path: "/gallery",
redirect: "/gallery/java/faithful_32x/latest/all/",
name: "Gallery",
},
{
path: "/gallery/:edition/:pack/:version/:tag/:search*",
Expand Down Expand Up @@ -341,7 +340,7 @@ const ALL_TABS = [
icon: "mdi-account-multiple",
label: "users",
routes: [
{ path: "/users", redirect: "/users/all", name: "Users" },
{ path: "/users", redirect: "/users/all" },
{ path: "/users/:role?/:name*", component: UsersPage, name: "Users" },
],
},
Expand All @@ -350,7 +349,7 @@ const ALL_TABS = [
icon: "mdi-texture",
label: "textures",
routes: [
{ path: "/textures", redirect: "/textures/all", name: "Textures" },
{ path: "/textures", redirect: "/textures/all" },
{ path: "/textures/:tag?/:name*", component: TexturePage, name: "Textures" },
],
},
Expand All @@ -359,7 +358,7 @@ const ALL_TABS = [
icon: "mdi-cube",
label: "packs",
routes: [
{ path: "/packs", redirect: "/packs/all", name: "Packs" },
{ path: "/packs", redirect: "/packs/all" },
{ path: "/packs/:tag?/", component: PackPage, name: "Packs" },
],
},
Expand Down

0 comments on commit 976274f

Please sign in to comment.