fix: servers API path
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 13s
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 13s
This commit is contained in:
parent
d6b1df061d
commit
64da1b1c0e
@ -4,7 +4,7 @@ import type { ServerInfo, ServerHealth, WorkerInfo } from '@/types'
|
|||||||
export type { ServerInfo, ProcessInfo, HealthService, ServerHealth, WorkerInfo, ServerMetrics } from '@/types'
|
export type { ServerInfo, ProcessInfo, HealthService, ServerHealth, WorkerInfo, ServerMetrics } from '@/types'
|
||||||
|
|
||||||
export const serversAPI = {
|
export const serversAPI = {
|
||||||
metrics() { return api.get<{ servers: ServerInfo[] }>('/admin-api/servers') },
|
metrics() { return api.get<{ servers: ServerInfo[] }>('/admin-api/servers/metrics') },
|
||||||
health() { return api.get<ServerHealth[]>('/admin-api/servers/health') },
|
health() { return api.get<ServerHealth[]>('/admin-api/servers/health') },
|
||||||
workers() { return api.get<{ workers: WorkerInfo[] }>('/admin-api/servers/workers') },
|
workers() { return api.get<{ workers: WorkerInfo[] }>('/admin-api/servers/workers') },
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user