All checks were successful
Auto Tag Develop / tag (push) Successful in 6s
Reviewed-on: #1 Co-authored-by: tristan <tristan@yuno.malio.fr> Co-committed-by: tristan <tristan@yuno.malio.fr>
14 lines
442 B
TypeScript
14 lines
442 B
TypeScript
import type { DashboardResponse, EnvironmentHealth } from './dto/dashboard'
|
|
|
|
export function getDashboard(): Promise<DashboardResponse> {
|
|
return useApi().get<DashboardResponse>('/dashboard', undefined, {
|
|
toast: false,
|
|
})
|
|
}
|
|
|
|
export function getEnvironmentHealth(envId: number): Promise<EnvironmentHealth> {
|
|
return useApi().get<EnvironmentHealth>(`/environments/${envId}/health`, undefined, {
|
|
toast: false,
|
|
})
|
|
}
|