CE-EE parity for routes
This normalizes all route definitions between CE and EE. As a result, several EE-only routes are included in CE. In order to handle requests to these routes as a 404 rather than a 500, this MR introduces an EeOnlyRoute
middleware which captures an ActionController::RoutingError
and, if the original cause is a NameError
ending in Controller
, we return a 404 response.
Closes https://gitlab.com/gitlab-org/gitlab-ee/issues/6654
EE counterpart: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/14304
Edited by Robert Speicher