Welcome to mirror list, hosted at ThFree Co, Russian Federation.

snippets.rb « routes « config - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3ca096f31ba6ba13cae95337022148a1a73a3b16 (plain)
1
2
3
4
5
6
7
8
9
resources :snippets, concerns: :awardable do
  member do
    get 'raw'
    get 'download'
  end
end

get '/s/:username', to: redirect('/u/%{username}/snippets'),
                    constraints: { username: /[a-zA-Z.0-9_\-]+(?<!\.atom)/ }