diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-05 03:07:49 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-05 03:07:49 +0300 |
commit | 77237c5a6b9044f58beabc54d3589e5fa09cbfba (patch) | |
tree | f43188047fe8955f6cf78e05ae9c2e8f6a019e0b /config | |
parent | 2fd92f2dc784ade9cb4e1c33dd60cbfad7b86818 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'config')
-rw-r--r-- | config/routes/git_http.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/config/routes/git_http.rb b/config/routes/git_http.rb index 593f818e434..fb8119904ea 100644 --- a/config/routes/git_http.rb +++ b/config/routes/git_http.rb @@ -32,6 +32,14 @@ concern :lfsable do end end +# Git route for personal and project snippets +scope(path: ':namespace_id/:repository_id', + format: nil, + constraints: { namespace_id: Gitlab::PathRegex.personal_and_project_snippets_path_regex, repository_id: /\d+\.git/ }, + module: :repositories) do + concerns :gitactionable +end + scope(path: '*namespace_id/:repository_id', format: nil, constraints: { namespace_id: Gitlab::PathRegex.full_namespace_route_regex }) do |