Merge branch '162-phase-2-changes' into 'master'
Resolve "Phase 2 changes" Closes #162 See merge request jankstudio/resq!170
This commit is contained in:
commit
5a37941ed5
1 changed files with 3 additions and 2 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
namespace App\Ramcar;
|
namespace App\Ramcar;
|
||||||
|
|
||||||
use Symfony\Component\HttpFoundation\JsonResponse;
|
use Symfony\Component\HttpFoundation\Response;
|
||||||
|
|
||||||
class APIResult
|
class APIResult
|
||||||
{
|
{
|
||||||
|
|
@ -68,7 +68,8 @@ class APIResult
|
||||||
'data' => $this->data
|
'data' => $this->data
|
||||||
];
|
];
|
||||||
|
|
||||||
$json = new JsonResponse($return_data);
|
$json_data = json_encode($return_data, JSON_NUMERIC_CHECK);
|
||||||
|
$json = new Response($json_data);
|
||||||
|
|
||||||
return $json;
|
return $json;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue