json api response unescape

This commit is contained in:
xinatorus 2020-05-13 11:35:54 +02:00
parent 1070d8036c
commit 3d541999a1

View File

@ -31,6 +31,6 @@ class ApiController {
protected function response($data = [], $httpCode = '200'){ protected function response($data = [], $httpCode = '200'){
http_response_code($httpCode); http_response_code($httpCode);
echo json_encode($data); echo json_encode($data, JSON_UNESCAPED_UNICODE);
} }
} }