aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/validators
diff options
context:
space:
mode:
Diffstat (limited to 'server/middlewares/validators')
-rw-r--r--server/middlewares/validators/plugins.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/middlewares/validators/plugins.ts b/server/middlewares/validators/plugins.ts
index 68704bf56..dc3f1454a 100644
--- a/server/middlewares/validators/plugins.ts
+++ b/server/middlewares/validators/plugins.ts
@@ -127,6 +127,9 @@ const listAvailablePluginsValidator = [
127 query('pluginType') 127 query('pluginType')
128 .optional() 128 .optional()
129 .custom(isPluginTypeValid).withMessage('Should have a valid plugin type'), 129 .custom(isPluginTypeValid).withMessage('Should have a valid plugin type'),
130 query('currentPeerTubeEngine')
131 .optional()
132 .custom(isPluginVersionValid).withMessage('Should have a valid current peertube engine'),
130 133
131 (req: express.Request, res: express.Response, next: express.NextFunction) => { 134 (req: express.Request, res: express.Response, next: express.NextFunction) => {
132 logger.debug('Checking enabledPluginValidator parameters', { parameters: req.query }) 135 logger.debug('Checking enabledPluginValidator parameters', { parameters: req.query })