diff options
Diffstat (limited to 'lib/ci/api/api.rb')
-rw-r--r-- | lib/ci/api/api.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/ci/api/api.rb b/lib/ci/api/api.rb index 172c6f22164..5109c84e0ea 100644 --- a/lib/ci/api/api.rb +++ b/lib/ci/api/api.rb @@ -23,6 +23,10 @@ module Ci rack_response({ 'message' => '500 Internal Server Error' }, 500) end + before do + check_enable_flag! + end + format :json helpers Helpers @@ -32,7 +36,6 @@ module Ci mount Commits mount Runners mount Projects - mount Forks mount Triggers end end |