Skip to content

Commit 104975f

Browse files
arbrandesclaude
andcommitted
fix: use roles array in route handle config
frontend-base now expects `roles: [role]` instead of `role: role` in route handle objects. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent b61a6f4 commit 104975f

2 files changed

Lines changed: 45 additions & 15 deletions

File tree

package-lock.json

Lines changed: 40 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/routes.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const routes = [
2828
{
2929
path: loginPath,
3030
handle: {
31-
role: loginRole,
31+
roles: [loginRole],
3232
},
3333
element: (
3434
<UnAuthOnlyRoute><Logistration selectedPage={loginPath} /></UnAuthOnlyRoute>
@@ -37,7 +37,7 @@ const routes = [
3737
{
3838
path: registerPath,
3939
handle: {
40-
role: registerRole,
40+
roles: [registerRole],
4141
},
4242
element: (
4343
<UnAuthOnlyRoute><Logistration /></UnAuthOnlyRoute>
@@ -46,7 +46,7 @@ const routes = [
4646
{
4747
path: resetPath,
4848
handle: {
49-
role: resetPasswordRole,
49+
roles: [resetPasswordRole],
5050
},
5151
element: (
5252
<UnAuthOnlyRoute><ForgotPasswordPage /></UnAuthOnlyRoute>
@@ -55,7 +55,7 @@ const routes = [
5555
{
5656
path: `${passwordResetConfirmPath}/:token`,
5757
handle: {
58-
role: confirmPasswordRole,
58+
roles: [confirmPasswordRole],
5959
},
6060
element: (
6161
<ResetPasswordPage />
@@ -64,7 +64,7 @@ const routes = [
6464
{
6565
path: welcomePath,
6666
handle: {
67-
role: welcomeRole,
67+
roles: [welcomeRole],
6868
},
6969
element: (
7070
<ProgressiveProfiling />

0 commit comments

Comments
 (0)