modified: backend/src/server.ts
modified: frontend/src/App.tsx modified: frontend/src/components/Sidebar.tsx modified: frontend/src/services/api.ts
This commit is contained in:
@@ -77,7 +77,7 @@ function App() {
|
||||
}
|
||||
/>
|
||||
<Route
|
||||
path="/sql"
|
||||
path="/workbench"
|
||||
element={
|
||||
<PrivateRoute>
|
||||
<Layout>
|
||||
|
||||
@@ -4,7 +4,7 @@ import { cn } from '@/utils/cn';
|
||||
|
||||
const navItems = [
|
||||
{ to: '/', icon: Home, label: 'Главная' },
|
||||
{ to: '/sql', icon: Database, label: 'SQL интерфейс' },
|
||||
{ to: '/workbench', icon: Database, label: 'SQL интерфейс' },
|
||||
{ to: '/endpoints', icon: FileCode, label: 'Эндпоинты' },
|
||||
{ to: '/folders', icon: Folder, label: 'Папки' },
|
||||
{ to: '/api-keys', icon: Key, label: 'API Ключи' },
|
||||
|
||||
@@ -184,7 +184,7 @@ export interface SqlQueryResult {
|
||||
|
||||
export const sqlInterfaceApi = {
|
||||
execute: (databaseId: string, query: string) =>
|
||||
api.post<SqlQueryResult>('/sql/execute', { database_id: databaseId, query }),
|
||||
api.post<SqlQueryResult>('/workbench/execute', { database_id: databaseId, query }),
|
||||
};
|
||||
|
||||
export default api;
|
||||
|
||||
Reference in New Issue
Block a user