CE-EE parity for routes
Alternative solution to the one attempted in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/29902.
Closes https://gitlab.com/gitlab-org/gitlab-ee/issues/6654
CE counterpart: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/29994
Edited by Robert Speicher