b9e259dded
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
8 lines
220 B
Ruby
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)/ }
|