diff options
Diffstat (limited to 'config/routes/unmatched_project.rb')
-rw-r--r-- | config/routes/unmatched_project.rb | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/config/routes/unmatched_project.rb b/config/routes/unmatched_project.rb index 3f94af33e18..c310ae91777 100644 --- a/config/routes/unmatched_project.rb +++ b/config/routes/unmatched_project.rb @@ -1,11 +1,15 @@ # frozen_string_literal: true -scope(path: '*namespace_id', - as: :namespace, - namespace_id: Gitlab::PathRegex.full_namespace_route_regex) do - scope(path: ':project_id', - constraints: { project_id: Gitlab::PathRegex.project_route_regex }, - as: :project) do +scope( + path: '*namespace_id', + as: :namespace, + namespace_id: Gitlab::PathRegex.full_namespace_route_regex +) do + scope( + path: ':project_id', + constraints: { project_id: Gitlab::PathRegex.project_route_regex }, + as: :project + ) do post '*all', to: 'application#route_not_found' put '*all', to: 'application#route_not_found' patch '*all', to: 'application#route_not_found' |