Skip to content

Commit fe187b9

Browse files
authored
Merge pull request #62 from GhentCDH/feat/health_controller
feat: health check endpoint
2 parents 5e6b939 + 3629709 commit fe187b9

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
namespace App\Controller;
4+
5+
use Symfony\Component\HttpFoundation\JsonResponse;
6+
use Symfony\Component\HttpFoundation\Request;
7+
use Symfony\Component\Routing\Annotation\Route;
8+
9+
class HealthController extends BaseController
10+
{
11+
/**
12+
* @Route("/health", name="health", methods={"GET"})
13+
*/
14+
public function health(Request $request): JsonResponse
15+
{
16+
return new JsonResponse(['status' => 'ok']);
17+
}
18+
}

0 commit comments

Comments
 (0)