From 182188c6b24aef06b52526d4c0106388d6d6b836 Mon Sep 17 00:00:00 2001 From: Nevil Date: Thu, 21 Mar 2024 18:28:30 +0530 Subject: [PATCH] added cloud-services to valid list --- src/routes/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/routes/index.js b/src/routes/index.js index 55d2dd2a..b73743c6 100644 --- a/src/routes/index.js +++ b/src/routes/index.js @@ -89,7 +89,9 @@ module.exports = (app) => { error.statusCode = 400 throw error } + // Validate controller + allowedControllers.push('cloud-services') if (!allowedControllers.includes(controllerName)) { const error = new Error('Invalid controller.') error.statusCode = 400