mirror of
https://github.com/tale/headplane.git
synced 2026-08-27 15:37:04 +00:00
fix: use healthy/unhealthy for info endpoint
This commit is contained in:
@@ -37,7 +37,7 @@ export async function loader({ request, context }: Route.LoaderArgs) {
|
|||||||
const healthy = await api.isHealthy();
|
const healthy = await api.isHealthy();
|
||||||
|
|
||||||
const body = {
|
const body = {
|
||||||
status: healthy ? 'OK' : 'ERROR',
|
status: healthy ? 'healthy' : 'unhealthy',
|
||||||
headplane_version: __VERSION__,
|
headplane_version: __VERSION__,
|
||||||
headscale_canonical_version: healthy ? context.hsApi.apiVersion : 'unknown',
|
headscale_canonical_version: healthy ? context.hsApi.apiVersion : 'unknown',
|
||||||
internal_versions: {
|
internal_versions: {
|
||||||
|
|||||||
Reference in New Issue
Block a user