From c3fd52b99b5023567d5e7792d928203686b11f64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Vidis?= Date: Wed, 16 Dec 2015 16:16:37 +0100 Subject: [PATCH] rest route for admin/putRole should include the role id --- lib/api/controllers/routerController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api/controllers/routerController.js b/lib/api/controllers/routerController.js index ea4b653b84..2d08b6c97e 100644 --- a/lib/api/controllers/routerController.js +++ b/lib/api/controllers/routerController.js @@ -29,7 +29,7 @@ module.exports = function RouterController (kuzzle) { {verb: 'post', url: '/_getStats', controller: 'admin', action: 'getStats'}, {verb: 'get', url: '/_getAllStats', controller: 'admin', action: 'getAllStats'}, {verb: 'get', url: '/_now', controller: 'read', action: 'now'}, - {verb: 'put', url: '/_role', controller: 'admin', action: 'putRole'}, + {verb: 'put', url: '/_role/:id', controller: 'admin', action: 'putRole'}, {verb: 'get', url: '/_listSubscriptions', controller: 'subscribe', action: 'list'}, {verb: 'get', url: '/:collection/_mapping', controller: 'admin', action: 'getMapping'}, {verb: 'get', url: '/:collection/:id', controller: 'read', action: 'get'},