From f5e0b8e3b7149d1f6692e4f24cdd511d3e044fd6 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 16 May 2017 20:34:04 +1000 Subject: [PATCH] JSON formatting (#1495) --- app/Http/Controllers/InvoiceApiController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/InvoiceApiController.php b/app/Http/Controllers/InvoiceApiController.php index b948e28960..5e75f36c7a 100644 --- a/app/Http/Controllers/InvoiceApiController.php +++ b/app/Http/Controllers/InvoiceApiController.php @@ -317,7 +317,7 @@ class InvoiceApiController extends BaseAPIController } $headers = Utils::getApiHeaders(); - $response = json_encode(RESULT_SUCCESS, JSON_PRETTY_PRINT); + $response = json_encode(['message' => RESULT_SUCCESS], JSON_PRETTY_PRINT); return Response::make($response, 200, $headers); }