diff options
Diffstat (limited to 'config/routes')
-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 |