summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/App.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/App.php b/src/App.php
index 350247f..c6e8539 100644
--- a/src/App.php
+++ b/src/App.php
@@ -122,6 +122,8 @@ class App
$content['error'] = basename(get_class($exception)) . ': ' . $exception->getMessage();
}
+ $content = $hooks->applyFilter('response:content', $content, $response);
+
$response->headers->set('Content-Type', 'application/json');
$response->headers->set('Access-Control-Allow-Origin', implode(',', $config['api']['cors']['origins']));
$response->setContent(json_encode($content));