Files
api/services/nginx/app/routes/pingRoute.php
T
Jeppe Bundgaard b7aeb11801 Add department_selfserve_path_confirmations table and enhance PingApiTest
Introduce a new database table `department_selfserve_path_confirmations` to store path confirmations related to department configurations. Update `PingApiTest` to verify additional keys, ensuring `backend_version` and `api_commit_sha` are checked in the response.
2026-05-27 17:35:16 +02:00

25 lines
510 B
PHP

<?php
namespace routes;
use classes\release_manager;
use traits\route_t;
class pingRoute
{
use route_t;
public function run(): void
{
$this->get('/ping', function () {
global $response;
$response->success([
'message' => 'pong',
'time' => date('c'),
'backend_version' => release_manager::backendVersion(),
'api_commit_sha' => release_manager::backendCommitSha(),
]);
});
}
}