mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 09:33:46 +00:00
feat: add system pages admin section
This commit is contained in:
11
src/App.tsx
11
src/App.tsx
@@ -155,6 +155,7 @@ const AdminNewsCreate = lazyWithRetry(() => import('./pages/AdminNewsCreate'));
|
||||
const InfoPageView = lazyWithRetry(() => import('./pages/InfoPageView'));
|
||||
const AdminInfoPages = lazyWithRetry(() => import('./pages/AdminInfoPages'));
|
||||
const AdminInfoPageEditor = lazyWithRetry(() => import('./pages/AdminInfoPageEditor'));
|
||||
const AdminLegalPages = lazyWithRetry(() => import('./pages/AdminLegalPages'));
|
||||
|
||||
function ProtectedRoute({
|
||||
children,
|
||||
@@ -1345,6 +1346,16 @@ function App() {
|
||||
</PermissionRoute>
|
||||
}
|
||||
/>
|
||||
<Route
|
||||
path="/admin/legal-pages"
|
||||
element={
|
||||
<PermissionRoute permission="info_pages:read">
|
||||
<LazyPage>
|
||||
<AdminLegalPages />
|
||||
</LazyPage>
|
||||
</PermissionRoute>
|
||||
}
|
||||
/>
|
||||
|
||||
<Route
|
||||
path="/admin/audit-log"
|
||||
|
||||
Reference in New Issue
Block a user