Commit 937b4ca7 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'dz-ee-api-endpoints' into 'master'

Move EE-only API endpoints mount to separate file

See merge request gitlab-org/gitlab-ee!8945
parents e430b7f9 d8375ea8
# frozen_string_literal: true
module EE
module API
module Endpoints
extend ActiveSupport::Concern
prepended do
mount ::EE::API::Boards
mount ::EE::API::GroupBoards
mount ::API::Unleash
mount ::API::EpicIssues
mount ::API::Epics
mount ::API::Geo
mount ::API::GeoNodes
mount ::API::IssueLinks
mount ::API::Ldap
mount ::API::LdapGroupLinks
mount ::API::License
mount ::API::ProjectMirror
mount ::API::ProjectPushRule
mount ::API::MavenPackages
end
end
end
end
......@@ -170,26 +170,10 @@ module API
mount ::API::Version
mount ::API::Wikis
## EE-specific API V4 endpoints START
mount ::EE::API::Boards
mount ::EE::API::GroupBoards
mount ::API::Unleash
mount ::API::EpicIssues
mount ::API::Epics
mount ::API::Geo
mount ::API::GeoNodes
mount ::API::IssueLinks
mount ::API::Ldap
mount ::API::LdapGroupLinks
mount ::API::License
mount ::API::ProjectMirror
mount ::API::ProjectPushRule
mount ::API::MavenPackages
## EE-specific API V4 endpoints END
route :any, '*path' do
error!('404 Not Found', 404)
end
end
end
API::API.prepend(::EE::API::Endpoints)
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