gitlab-org--gitlab-foss/config/routes/snippets.rb
Dmitriy Zaporozhets b9e259dded
Cleanup config/routes.rb even further by extracting more routes into separate files
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-10-05 18:43:47 +03:00

8 lines
220 B
Ruby

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