diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-01 12:02:36 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-01 12:02:58 +0300 |
commit | 23330db102f66781cc9a22cd006433cfcbd13863 (patch) | |
tree | 7c1630c6373a1c4d156eeb7f8bc4010c9a280d11 /config/routes | |
parent | 8d628223c41aabc9d42af95cce1193becffa1b0f (diff) |
Add latest changes from gitlab-org/security/gitlab@13-8-stable-ee
Diffstat (limited to 'config/routes')
-rw-r--r-- | config/routes/unmatched_project.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/config/routes/unmatched_project.rb b/config/routes/unmatched_project.rb new file mode 100644 index 00000000000..b4fe243c7b0 --- /dev/null +++ b/config/routes/unmatched_project.rb @@ -0,0 +1,18 @@ +# 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 + post '*all', to: 'application#route_not_found' + put '*all', to: 'application#route_not_found' + patch '*all', to: 'application#route_not_found' + delete '*all', to: 'application#route_not_found' + post '/', to: 'application#route_not_found' + put '/', to: 'application#route_not_found' + patch '/', to: 'application#route_not_found' + delete '/', to: 'application#route_not_found' + end +end |