chg: dev: massive refactor on fetches - create centralized dataProvider #7
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user