0
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2024-11-21 14:57:52 +00:00
RSS-Bridge_rss-bridge/actions/HealthAction.php
2024-08-07 00:21:06 +02:00

16 lines
351 B
PHP

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