blob: 4ce4c11aa65808e59ce433482fc7b1d0352dfd40 (
plain)
1
2
3
4
5
6
7
8
9
10
|
resources :snippets, concerns: :awardable do
member do
get :raw
post :mark_as_spam
post :preview_markdown
end
end
get '/s/:username', to: redirect('/u/%{username}/snippets'),
constraints: { username: /[a-zA-Z.0-9_\-]+(?<!\.atom)/ }
|