modified: frontend/src/App.tsx
modified: frontend/src/components/Sidebar.tsx
This commit is contained in:
@@ -125,17 +125,6 @@ function App() {
|
|||||||
</PrivateRoute>
|
</PrivateRoute>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
<Route
|
|
||||||
path="/api-docs"
|
|
||||||
action={() => {
|
|
||||||
try {
|
|
||||||
document.location.reload()
|
|
||||||
return true
|
|
||||||
} catch(err) {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
<Route path="*" element={<Navigate to="/" />} />
|
<Route path="*" element={<Navigate to="/" />} />
|
||||||
</Routes>
|
</Routes>
|
||||||
</BrowserRouter>
|
</BrowserRouter>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ const navItems = [
|
|||||||
{ to: '/api-keys', icon: Key, label: 'API Ключи' },
|
{ to: '/api-keys', icon: Key, label: 'API Ключи' },
|
||||||
{ to: '/logs', icon: FileText, label: 'Логи' },
|
{ to: '/logs', icon: FileText, label: 'Логи' },
|
||||||
{ to: '/settings', icon: Settings, label: 'Настройки' },
|
{ to: '/settings', icon: Settings, label: 'Настройки' },
|
||||||
{ to: '/api-docs', icon: Book, label: 'Swagger' },
|
{ to: '/api-docs', icon: Book, label: 'Swagger', external: true },
|
||||||
];
|
];
|
||||||
|
|
||||||
export default function Sidebar() {
|
export default function Sidebar() {
|
||||||
|
|||||||
Reference in New Issue
Block a user