gitlab-org--gitlab-foss/config/routes/snippets.rb
2016-10-11 15:36:59 -04:00

9 lines
239 B
Ruby

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)/ }