[API] Added missing route not found error for /get/logs/

master
ntimo 2019-10-03 20:58:56 +02:00
parent 2da55296b5
commit 08350d9a95
No known key found for this signature in database
GPG Key ID: 3AF3627FB0440D55
1 changed files with 7 additions and 0 deletions

View File

@ -589,6 +589,13 @@ if (isset($_SESSION['mailcow_cc_role']) || isset($_SESSION['pending_mailcow_cc_u
}
echo (isset($logs) && !empty($logs)) ? json_encode($logs, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT) : '{}';
break;
default:
http_response_code(404);
echo json_encode(array(
'type' => 'error',
'msg' => 'route not found'
));
die();
}
break;
case "mailbox":