1
0
Fork 0
mirror of synced 2024-06-02 10:54:44 +12:00

Added latest version endpoint (hidden from API)

This commit is contained in:
Eldad Fux 2020-06-15 11:01:32 +03:00
parent 56c3f3a946
commit 76e43da781

View file

@ -20,6 +20,15 @@ $utopia->get('/v1/health')
}
);
$utopia->get('/v1/health/version')
->desc('Get Version')
->label('scope', 'public')
->action(
function () use ($response) {
$response->json(['version' => APP_VERSION_STABLE]);
}
);
$utopia->get('/v1/health/db')
->desc('Get DB')
->label('scope', 'health.read')
@ -124,7 +133,7 @@ $utopia->get('/v1/health/queue/tasks')
);
$utopia->get('/v1/health/queue/logs')
->desc('Get Logs Queue')
->desc('Get Logs Queue')
->label('scope', 'health.read')
->label('sdk.platform', [APP_PLATFORM_SERVER])
->label('sdk.namespace', 'health')