Update App.tsx

This commit is contained in:
Egor
2026-01-17 03:09:36 +03:00
committed by GitHub
parent 5f857b3053
commit 7278381b21

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 AdminBroadcasts from './pages/AdminBroadcasts'
function ProtectedRoute({ children }: { children: React.ReactNode }) {
const { isAuthenticated, isLoading } = useAuthStore()
@@ -217,6 +218,14 @@ function App() {
</AdminRoute>
}
/>
<Route
path="/admin/broadcasts"
element={
<AdminRoute>
<AdminBroadcasts />
</AdminRoute>
}
/>
{/* Catch all */}
<Route path="*" element={<Navigate to="/" replace />} />