Commit 4be12be62a9dc30faecff139684f7537f0726d45
1 parent
e90aebe2
Exists in
master
and in
4 other branches
Routes fixed
Showing
1 changed file
with
10 additions
and
8 deletions
Show diff stats
config/routes.rb
| ... | ... | @@ -39,6 +39,16 @@ Gitlab::Application.routes.draw do |
| 39 | 39 | get 'help/workflow' => 'help#workflow' |
| 40 | 40 | |
| 41 | 41 | # |
| 42 | + # Global snippets | |
| 43 | + # | |
| 44 | + resources :snippets do | |
| 45 | + member do | |
| 46 | + get "raw" | |
| 47 | + end | |
| 48 | + end | |
| 49 | + match "/s/:username" => "snippets#user_index", as: :user_snippets, constraints: { username: /.*/ } | |
| 50 | + | |
| 51 | + # | |
| 42 | 52 | # Public namespace |
| 43 | 53 | # |
| 44 | 54 | namespace :public do |
| ... | ... | @@ -100,14 +110,6 @@ Gitlab::Application.routes.draw do |
| 100 | 110 | |
| 101 | 111 | get "errors/githost" |
| 102 | 112 | |
| 103 | - resources :snippets do | |
| 104 | - member do | |
| 105 | - get "raw" | |
| 106 | - get "my" | |
| 107 | - end | |
| 108 | - end | |
| 109 | - match "/s/:username" => "snippets#user_index", as: :user_snippets, constraints: { username: /.*/ } | |
| 110 | - | |
| 111 | 113 | # |
| 112 | 114 | # Profile Area |
| 113 | 115 | # | ... | ... |