From a892c34be4e0599503051f40d2553d0f41a79638 Mon Sep 17 00:00:00 2001 From: sveisvei Date: Mon, 9 Jan 2017 11:06:10 +0100 Subject: [PATCH] use post instead of put --- lib/routes/feature.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/feature.js b/lib/routes/feature.js index 356c846364..3629dc5692 100644 --- a/lib/routes/feature.js +++ b/lib/routes/feature.js @@ -99,7 +99,7 @@ module.exports = function (app, config) { .catch(error => handleErrors(req, res, error)); }); - app.put('/features/:featureName/toggle', (req, res) => { + app.post('/features/:featureName/toggle', (req, res) => { const featureName = req.params.featureName; const userName = extractUser(req);