mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-10 17:08:47 +00:00
feat: add health check action (#3484)
This commit is contained in:
parent
82c22bd2b5
commit
84501cfc00
15
actions/HealthAction.php
Normal file
15
actions/HealthAction.php
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
class HealthAction implements ActionInterface
|
||||||
|
{
|
||||||
|
public function execute(array $request)
|
||||||
|
{
|
||||||
|
$response = [
|
||||||
|
'code' => 200,
|
||||||
|
'message' => 'all is good',
|
||||||
|
];
|
||||||
|
return new Response(Json::encode($response), 200, ['content-type' => 'application/json']);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user