change list_alerts function to handle GET filter not POST

This commit is contained in:
PandaWawawa
2015-10-08 15:20:42 +02:00
parent fbc7dd6b1c
commit 6ac8e72728

View File

@ -623,6 +623,7 @@ function list_alerts() {
'err-msg' => '',
'count' => $total_alerts,
'alerts' => $alerts,
'debug' => $_GET['state']
);
$app->response->setStatus('200');
$app->response->headers->set('Content-Type', 'application/json');