fix: restore watched-case deletion through subscriptions facade
This commit is contained in:
@@ -27,6 +27,7 @@ ApiProxy.get(async (req, res) => {
|
|||||||
"/api/endpoint/getportallogin_api",
|
"/api/endpoint/getportallogin_api",
|
||||||
"/api/endpoint/deletemyrepresentations_api",
|
"/api/endpoint/deletemyrepresentations_api",
|
||||||
"/api/endpoint/deletewatchedcases_api",
|
"/api/endpoint/deletewatchedcases_api",
|
||||||
|
"/api/subscriptions/delete-watched-case",
|
||||||
"/api/file/upload",
|
"/api/file/upload",
|
||||||
"/api/file/uploadsinglefile",
|
"/api/file/uploadsinglefile",
|
||||||
"/api/file/deleteblobcase",
|
"/api/file/deleteblobcase",
|
||||||
@@ -41,7 +42,7 @@ ApiProxy.get(async (req, res) => {
|
|||||||
typeof queryPath !== "string" ||
|
typeof queryPath !== "string" ||
|
||||||
queryPath.length === 0 ||
|
queryPath.length === 0 ||
|
||||||
!queryPath.startsWith("/api/") ||
|
!queryPath.startsWith("/api/") ||
|
||||||
!allowedPrefix.some((prefix) => queryPath.startsWith(prefix)) ||
|
!allowedPrefix.includes(queryPath) ||
|
||||||
queryPath.includes("/api/endpoint/gethash_api")
|
queryPath.includes("/api/endpoint/gethash_api")
|
||||||
) {
|
) {
|
||||||
return respondError(res, {
|
return respondError(res, {
|
||||||
|
|||||||
Reference in New Issue
Block a user