MSP-3173 add Route in Routers
This commit is contained in:
1 parent
d9499fe5d0
commit
88da3bb572
1 file changed
+17
-8
@@ -14,6 +14,7 @@ const ErrorPage = lazy(() => import('@components/ErrorPage'))
|
||||
const ProfilePage = lazy(() => import('@pages/ProfilePage'))
|
||||
const UsersPage = lazy(() => import('@pages/UsersPage'))
|
||||
const UserEditor = lazy(() => import('src/pages/UserEditor'))
|
||||
const SessionsPage = lazy(() => import('@pages/SessionsPage'))
|
||||
const SecurityLogPage = lazy(() => import('@pages/SecurityLogPage'))
|
||||
const AppAccessPage = lazy(() => import('@pages/AppAccessPage'))
|
||||
|
||||
@@ -54,6 +55,22 @@ const Routers = () => {
|
||||
</Suspense>
|
||||
}
|
||||
/>
|
||||
<Route
|
||||
path={routePaths.sessions}
|
||||
element={
|
||||
<Suspense fallback={<Spin />}>
|
||||
<SessionsPage />
|
||||
</Suspense>
|
||||
}
|
||||
/>
|
||||
<Route
|
||||
path={routePaths.securityLog}
|
||||
element={
|
||||
<Suspense fallback={<Spin />}>
|
||||
<SecurityLogPage />
|
||||
</Suspense>
|
||||
}
|
||||
/>
|
||||
<Route
|
||||
path={`${routePaths.appAccess}`}
|
||||
element={
|
||||
@@ -71,14 +88,6 @@ const Routers = () => {
|
||||
}
|
||||
/>
|
||||
</Route>
|
||||
<Route
|
||||
path={routePaths.securityLog}
|
||||
element={
|
||||
<Suspense fallback={<Spin />}>
|
||||
<SecurityLogPage />
|
||||
</Suspense>
|
||||
}
|
||||
/>
|
||||
</Route>
|
||||
</Route>
|
||||
<Route
|
||||
|
||||
Reference in new issue
Block a user