From 08350d9a95ffa9c3d8ac445c275bca6a1c581fba Mon Sep 17 00:00:00 2001 From: ntimo Date: Thu, 3 Oct 2019 20:58:56 +0200 Subject: [PATCH] [API] Added missing route not found error for /get/logs/ --- data/web/json_api.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/data/web/json_api.php b/data/web/json_api.php index 63da426c8..7dd7feaa2 100644 --- a/data/web/json_api.php +++ b/data/web/json_api.php @@ -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":