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.
25 lines
510 B
PHP
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(),
|
|
]);
|
|
});
|
|
}
|
|
}
|