feat(frontend) : add DatabaseInfo type and service
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import type { DashboardResponse, EnvironmentHealth } from './dto/dashboard'
|
||||
import type { DashboardResponse, EnvironmentHealth, DatabaseInfo } from './dto/dashboard'
|
||||
|
||||
export function getDashboard(): Promise<DashboardResponse> {
|
||||
return useApi().get<DashboardResponse>('/dashboard', undefined, {
|
||||
@@ -11,3 +11,9 @@ export function getEnvironmentHealth(envId: number): Promise<EnvironmentHealth>
|
||||
toast: false,
|
||||
})
|
||||
}
|
||||
|
||||
export function getDatabaseInfo(envId: number): Promise<DatabaseInfo> {
|
||||
return useApi().get<DatabaseInfo>(`/environments/${envId}/database`, undefined, {
|
||||
toast: false,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user