Skip to content

Commit

Permalink
Fix routes name
Browse files Browse the repository at this point in the history
  • Loading branch information
lcharette committed Sep 28, 2024
1 parent 18d55a9 commit c2ce1d2
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
8 changes: 4 additions & 4 deletions app/assets/router/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const AdminGroupsRoutes = [
children: [
{
path: 'g/:slug', // groups/g/{slug}
name: 'account.group',
name: 'admin.group',
meta: {
guest: {
redirect: { name: 'home' }
Expand All @@ -62,7 +62,7 @@ const AdminPermissionsRoutes = [
children: [
{
path: 'p/:id', // permissions/p/{id}
name: 'account.permission',
name: 'admin.permission',
meta: {
guest: {
redirect: { name: 'home' }
Expand All @@ -86,7 +86,7 @@ const AdminRolesRoutes = [
children: [
{
path: 'r/:slug', // roles/r/{slug}
name: 'account.role',
name: 'admin.role',
meta: {
guest: {
redirect: { name: 'home' }
Expand All @@ -111,7 +111,7 @@ const AdminUsersRoutes = [
children: [
{
path: 'u/:user_name', // users/u/{user_name}
name: 'account.user',
name: 'admin.user',
meta: {
guest: {
redirect: { name: 'home' }
Expand Down
2 changes: 1 addition & 1 deletion dist/routes.cjs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=[{path:"dashboard",name:"admin.dashboard",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./DashboardView-CZ2sKm5M.cjs"))}],t=[{path:"activities",name:"admin.activities",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./ActivitiesView-kaWFEO4i.cjs"))}],n=[{path:"groups",name:"admin.groups",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./GroupsView-BI4KKM8s.cjs")),children:[{path:"g/:slug",name:"account.group",meta:{guest:{redirect:{name:"home"}}},component:()=>Promise.resolve().then(()=>require("./GroupView-BrWTling.cjs"))}]}],o=[{path:"permissions",name:"admin.permissions",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./PermissionsView-ftOWB-4K.cjs")),children:[{path:"p/:id",name:"account.permission",meta:{guest:{redirect:{name:"home"}}},component:()=>Promise.resolve().then(()=>require("./PermissionView-CUKDO1AM.cjs"))}]}],r=[{path:"roles",name:"admin.roles",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./RolesView-ByDmJ9us.cjs")),children:[{path:"r/:slug",name:"account.role",meta:{guest:{redirect:{name:"home"}}},component:()=>Promise.resolve().then(()=>require("./RoleView-CWK0-zrt.cjs"))}]}],s=[{path:"users",name:"admin.users",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./UsersView-C0bG-VhA.cjs")),children:[{path:"u/:user_name",name:"account.user",meta:{guest:{redirect:{name:"home"}}},component:()=>Promise.resolve().then(()=>require("./UserView-BeTp1kMD.cjs"))}]}],i=[...e,...t,...n,...o,...r,...s];exports.AdminActivitiesRoutes=t;exports.AdminDashboardRoutes=e;exports.AdminGroupsRoutes=n;exports.AdminPermissionsRoutes=o;exports.AdminRolesRoutes=r;exports.AdminUsersRoutes=s;exports.default=i;
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=[{path:"dashboard",name:"admin.dashboard",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./DashboardView-CZ2sKm5M.cjs"))}],n=[{path:"activities",name:"admin.activities",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./ActivitiesView-kaWFEO4i.cjs"))}],t=[{path:"groups",name:"admin.groups",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./GroupsView-BI4KKM8s.cjs")),children:[{path:"g/:slug",name:"admin.group",meta:{guest:{redirect:{name:"home"}}},component:()=>Promise.resolve().then(()=>require("./GroupView-BrWTling.cjs"))}]}],o=[{path:"permissions",name:"admin.permissions",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./PermissionsView-ftOWB-4K.cjs")),children:[{path:"p/:id",name:"admin.permission",meta:{guest:{redirect:{name:"home"}}},component:()=>Promise.resolve().then(()=>require("./PermissionView-CUKDO1AM.cjs"))}]}],r=[{path:"roles",name:"admin.roles",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./RolesView-ByDmJ9us.cjs")),children:[{path:"r/:slug",name:"admin.role",meta:{guest:{redirect:{name:"home"}}},component:()=>Promise.resolve().then(()=>require("./RoleView-CWK0-zrt.cjs"))}]}],i=[{path:"users",name:"admin.users",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./UsersView-C0bG-VhA.cjs")),children:[{path:"u/:user_name",name:"admin.user",meta:{guest:{redirect:{name:"home"}}},component:()=>Promise.resolve().then(()=>require("./UserView-BeTp1kMD.cjs"))}]}],s=[...e,...n,...t,...o,...r,...i];exports.AdminActivitiesRoutes=n;exports.AdminDashboardRoutes=e;exports.AdminGroupsRoutes=t;exports.AdminPermissionsRoutes=o;exports.AdminRolesRoutes=r;exports.AdminUsersRoutes=i;exports.default=s;
24 changes: 12 additions & 12 deletions dist/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const e = [
{
path: "g/:slug",
// groups/g/{slug}
name: "account.group",
name: "admin.group",
meta: {
guest: {
redirect: { name: "home" }
Expand All @@ -44,7 +44,7 @@ const e = [
}
]
}
], o = [
], m = [
{
path: "permissions",
name: "admin.permissions",
Expand All @@ -58,7 +58,7 @@ const e = [
{
path: "p/:id",
// permissions/p/{id}
name: "account.permission",
name: "admin.permission",
meta: {
guest: {
redirect: { name: "home" }
Expand All @@ -68,7 +68,7 @@ const e = [
}
]
}
], a = [
], o = [
{
path: "roles",
name: "admin.roles",
Expand All @@ -82,7 +82,7 @@ const e = [
{
path: "r/:slug",
// roles/r/{slug}
name: "account.role",
name: "admin.role",
meta: {
guest: {
redirect: { name: "home" }
Expand All @@ -92,7 +92,7 @@ const e = [
}
]
}
], m = [
], a = [
{
path: "users",
name: "admin.users",
Expand All @@ -106,7 +106,7 @@ const e = [
{
path: "u/:user_name",
// users/u/{user_name}
name: "account.user",
name: "admin.user",
meta: {
guest: {
redirect: { name: "home" }
Expand All @@ -120,16 +120,16 @@ const e = [
...e,
...t,
...n,
...m,
...o,
...a,
...m
...a
];
export {
t as AdminActivitiesRoutes,
e as AdminDashboardRoutes,
n as AdminGroupsRoutes,
o as AdminPermissionsRoutes,
a as AdminRolesRoutes,
m as AdminUsersRoutes,
m as AdminPermissionsRoutes,
o as AdminRolesRoutes,
a as AdminUsersRoutes,
i as default
};

0 comments on commit c2ce1d2

Please sign in to comment.