diff options
author | Douwe Maan <douwe@gitlab.com> | 2018-04-04 16:13:44 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2018-04-04 16:13:44 +0300 |
commit | e43c01e6b818a807abef110ec485f92cae396632 (patch) | |
tree | 9154251d512c08e73b076a5c600fc625f1906a42 /lib | |
parent | eaed588bf228c833cb666a61bc7d25cf21d5f94b (diff) | |
parent | caca8f34ffb56aed98a7894c98af6c4d1a5de78f (diff) |
Merge branch 'zj-feature-gate-remove-http-api' into 'master'
Allow feature gate removal through the API
See merge request gitlab-org/gitlab-ce!18146
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/features.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/api/features.rb b/lib/api/features.rb index 9385c6ca174..11d848584d9 100644 --- a/lib/api/features.rb +++ b/lib/api/features.rb @@ -65,6 +65,13 @@ module API present feature, with: Entities::Feature, current_user: current_user end + + desc 'Remove the gate value for the given feature' + delete ':name' do + Feature.get(params[:name]).remove + + status 204 + end end end end |