post('/webhook', WebhookHandler::class); $app->get('/health', function (ServerRequestInterface $request, ResponseInterface $response): ResponseInterface { $payload = json_encode(['ok' => true, 'time' => date('c')], JSON_UNESCAPED_UNICODE); $response->getBody()->write((string) $payload); return $response->withHeader('Content-Type', 'application/json'); }); };