mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-25 18:59:05 +02:00
RestApi: remove useless code
This is handled in the controller
This commit is contained in:
parent
2f79920a18
commit
8f1ae6fc94
@ -34,10 +34,6 @@ trait RestApi
|
||||
protected function sendJson(Response $response, $object)
|
||||
{
|
||||
$response->setHeader('Content-Type', 'application/json', true);
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$this->_helper->viewRenderer->setNoRender(true);
|
||||
/** @var ServicetemplatesController $this */
|
||||
$this->viewRenderer->disable();
|
||||
echo json_encode($object, JSON_PRETTY_PRINT) . "\n";
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user