Commit e457b10d authored by Yorick Peterse's avatar Yorick Peterse

Move EE code out of API::Services

This moves EE specific code out of API::Services and into
EE::API::Services.
parent 0350de04
# frozen_string_literal: true
module EE
module API
module Services
extend ActiveSupport::Concern
prepended do
desc "Trigger a global slack command" do
detail 'Added in GitLab 9.4'
end
post 'slack/trigger' do
if result = SlashCommands::GlobalSlackHandler.new(params).trigger
status result[:status] || 200
present result
else
not_found!
end
end
end
end
end
end
......@@ -160,17 +160,7 @@ module API
end
end
end
desc "Trigger a global slack command" do
detail 'Added in GitLab 9.4'
end
post 'slack/trigger' do
if result = SlashCommands::GlobalSlackHandler.new(params).trigger
status result[:status] || 200
present result
else
not_found!
end
end
end
end
API::Services.prepend(EE::API::Services)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment