From 09071200c73f5358e1d0bfb61a274e4f2c4ec52b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 19 Jul 2019 14:36:04 +0200 Subject: Add plugin API tests --- server/middlewares/validators/plugins.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'server/middlewares') 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 = [ query('pluginType') .optional() .custom(isPluginTypeValid).withMessage('Should have a valid plugin type'), + query('currentPeerTubeEngine') + .optional() + .custom(isPluginVersionValid).withMessage('Should have a valid current peertube engine'), (req: express.Request, res: express.Response, next: express.NextFunction) => { logger.debug('Checking enabledPluginValidator parameters', { parameters: req.query }) -- cgit v1.2.3