- Introduce `docker-compose.fleet-host.yml` allowing Elastic Agent to connect to a host-installed Fleet Server. - Add `pingRoute` to provide a simple `/ping` endpoint returning "pong" with a timestamp.
22 lines
336 B
PHP
22 lines
336 B
PHP
<?php
|
|
|
|
namespace routes;
|
|
|
|
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'),
|
|
]);
|
|
});
|
|
}
|
|
}
|