Private
Public Access
1
0

chg: dev: massive refactor on fetches - create centralized dataProvider #7

This commit is contained in:
2026-04-19 20:56:51 +02:00
parent 5da8a04c18
commit d9059acb78
6 changed files with 202 additions and 98 deletions

View File

@@ -120,9 +120,11 @@ class MercureController extends AbstractController
{
$data = $request->toArray();
$color = $data['color'] ?? '';
if ('red' !== $color && 'blue' !== $color) {
return $this->json(['success' => false], Response::HTTP_BAD_REQUEST);
}
$this->topicManager->publishHeartbeat($gameAssoc, $color);
return $this->json(['success' => true]);