Интеграция системы мониторинга банов

This commit is contained in:
PEDZEO
2026-01-16 16:03:51 +03:00
parent b1a5e17c6e
commit 34c128fd87
6 changed files with 1358 additions and 4 deletions

View File

@@ -25,6 +25,7 @@ import AdminTariffs from './pages/AdminTariffs'
import AdminServers from './pages/AdminServers'
import AdminPanel from './pages/AdminPanel'
import AdminDashboard from './pages/AdminDashboard'
import AdminBanSystem from './pages/AdminBanSystem'
function ProtectedRoute({ children }: { children: React.ReactNode }) {
const { isAuthenticated, isLoading } = useAuthStore()
@@ -217,6 +218,14 @@ function App() {
</AdminRoute>
}
/>
<Route
path="/admin/ban-system"
element={
<AdminRoute>
<AdminBanSystem />
</AdminRoute>
}
/>
{/* Catch all */}
<Route path="*" element={<Navigate to="/" replace />} />