diff --git a/pages/api/endpoint/gethash_api.js b/pages/api/endpoint/gethash_api.js index f0ef869e..3829aed1 100644 --- a/pages/api/endpoint/gethash_api.js +++ b/pages/api/endpoint/gethash_api.js @@ -27,6 +27,7 @@ ApiProxy.get(async (req, res) => { "/api/endpoint/getportallogin_api", "/api/endpoint/deletemyrepresentations_api", "/api/endpoint/deletewatchedcases_api", + "/api/subscriptions/delete-watched-case", "/api/file/upload", "/api/file/uploadsinglefile", "/api/file/deleteblobcase", @@ -41,7 +42,7 @@ ApiProxy.get(async (req, res) => { typeof queryPath !== "string" || queryPath.length === 0 || !queryPath.startsWith("/api/") || - !allowedPrefix.some((prefix) => queryPath.startsWith(prefix)) || + !allowedPrefix.includes(queryPath) || queryPath.includes("/api/endpoint/gethash_api") ) { return respondError(res, {