mirror of https://github.com/MISP/MISP
fix: Added rest response to the importFeeds method
parent
76e9398df9
commit
12b904da13
|
@ -89,7 +89,7 @@ class FeedsController extends AppController {
|
|||
$message .= ' ' . $fail . ' feeds could not be added (possibly because they already exist)';
|
||||
}
|
||||
if ($this->_isRest()) {
|
||||
|
||||
return $this->RestResponse->saveSuccessResponse('Feed', 'importFeeds', false, $this->response->type(), $message);
|
||||
} else {
|
||||
$this->Session->setFlash($message);
|
||||
$this->redirect(array('controller' => 'Feeds', 'action' => 'index', 'all'));
|
||||
|
|
Loading…
Reference in New Issue