Return numbers as numbers on all API endpoints

This commit is contained in:
Bernd Bestel
2021-07-08 19:34:16 +02:00
parent 633b26bf7e
commit 14cd6ca3bf
2 changed files with 2 additions and 1 deletions

View File

@@ -26,7 +26,7 @@ class BaseApiController extends BaseController
$response = $response->withHeader('Cache-Control', 'max-age=2592000');
}
$response->getBody()->write(json_encode($data));
$response->getBody()->write(json_encode($data, JSON_NUMERIC_CHECK));
return $response;
}