diff --git a/build/router/controller/api.php b/build/router/controller/api.php index 6778a66..288c625 100644 --- a/build/router/controller/api.php +++ b/build/router/controller/api.php @@ -37,8 +37,10 @@ $this->response = $this->request->dispatch(); /* (2) Manages result */ - if( $this->response instanceof Response ) + if( $this->response instanceof Response ){ + header('Content-Type: application/json'); echo $this->response->serialize(); + } return true;