diff --git a/app/api/WidgetApi.php b/app/api/WidgetApi.php index 1a377b5..0cbbd3d 100644 --- a/app/api/WidgetApi.php +++ b/app/api/WidgetApi.php @@ -12,6 +12,6 @@ class WidgetApi extends ApiController{ $response = !$lastValue; } - $this->response($response); + $this->response(['value' => $response]); } }