Is there a way to set the content type for "application / json" for responses globally in SLIM 3?
I tried the following things that did not work:
$app->contentType('application/json');
$app->response->headers->set('Content-Type', 'application/json');
source
share