summaryrefslogtreecommitdiff
path: root/config/routes/snippets.rb
blob: 1949f215c66f379947eb37973cc323ca5bc4ed9e (plain)
1
2
3
4
5
6
7
8
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)/ }