mirror of https://github.com/MISP/MISP
new: [internal] New ability to get JSON data from event preview
parent
2bdaa351ad
commit
56ef2f9874
|
@ -164,6 +164,10 @@ class ServersController extends AppController
|
|||
$this->redirect(array('action' => 'previewIndex', $serverId));
|
||||
}
|
||||
|
||||
if ($this->_isRest()) {
|
||||
return $this->RestResponse->viewData($event, $this->response->type());
|
||||
}
|
||||
|
||||
$this->loadModel('Warninglist');
|
||||
if (isset($event['Event']['Attribute'])) {
|
||||
$this->Warninglist->attachWarninglistToAttributes($event['Event']['Attribute']);
|
||||
|
|
Loading…
Reference in New Issue