rss-bridge/actions/HealthAction.php

15 lines
340 B
PHP

<?php
declare(strict_types=1);
class HealthAction implements ActionInterface
{
public function execute(Request $request)
{
$response = [
'code' => 200,
'message' => 'all is good',
];
return new Response(Json::encode($response), 200, ['content-type' => 'application/json']);
}
}