feat: add health check action (#3484)

This commit is contained in:
Dag 2023-07-05 05:41:20 +02:00 committed by GitHub
parent 82c22bd2b5
commit 84501cfc00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 0 deletions

15
actions/HealthAction.php Normal file
View 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']);
}
}