This commit is contained in:
2026-06-10 16:56:59 +03:00
commit 01538b7e69
81 changed files with 6412 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
import { BrowserRouter, Route, Routes } from 'react-router-dom'
import { AdminPage } from '@pages/admin'
import { AdminOrganizationPage } from '@pages/admin-organization'
import { ROUTES } from '@shared/config/routes'
import { ScrollToTop } from './ScrollToTop'
export function RouterProvider() {
return (
<BrowserRouter>
<ScrollToTop />
<Routes>
{/* Admin panel — own auth gate, independent of the user auth system */}
<Route path={ROUTES.ADMIN} element={<AdminPage />} />
<Route path={ROUTES.ADMIN_ORGANIZATION} element={<AdminOrganizationPage />} />
</Routes>
</BrowserRouter>
)
}