diff options
Diffstat (limited to 'config/routes/snippets.rb')
-rw-r--r-- | config/routes/snippets.rb | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/config/routes/snippets.rb b/config/routes/snippets.rb index 1ea9a6431d8..7bb82da4910 100644 --- a/config/routes/snippets.rb +++ b/config/routes/snippets.rb @@ -17,14 +17,11 @@ resources :snippets, concerns: :awardable do end end -# Use this /-/ scope for all new snippet routes. -scope path: '-' do - get '/snippets/:snippet_id/raw/:ref/*path', - to: 'snippets/blobs#raw', - as: :snippet_blob_raw, - format: false, - constraints: { snippet_id: /\d+/ } -end +get '/snippets/:snippet_id/raw/:ref/*path', + to: 'snippets/blobs#raw', + as: :snippet_blob_raw, + format: false, + constraints: { snippet_id: /\d+/ } get '/s/:username', to: redirect('users/%{username}/snippets'), constraints: { username: /[a-zA-Z.0-9_\-]+(?<!\.atom)/ } |