Files
api/services/nginx/app/routes/pingRoute.php
T
Jeppe Bundgaard 81bcc4f78d Add docker-compose config for host-based Fleet Server and new /ping route
- 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.
2026-02-24 09:28:41 +01:00

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'),
]);
});
}
}