BigW Consortium Gitlab

snippets.rb 239 Bytes
Newer Older
1 2 3
resources :snippets, concerns: :awardable do
  member do
    get 'raw'
4
    get 'download'
5 6 7 8 9
  end
end

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