summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorAndrew8xx8 <avk@8xx8.ru>2013-03-25 02:17:20 +0400
committerAndrew8xx8 <avk@8xx8.ru>2013-03-25 02:17:20 +0400
commit4be12be62a9dc30faecff139684f7537f0726d45 (patch)
treedc67e67295130cf7f8e9b1d0c6e906f1e1fa9a4a /config
parente90aebe259b1f81cb2523099cab4626b9276e751 (diff)
downloadgitlab-ce-4be12be62a9dc30faecff139684f7537f0726d45.tar.gz
Routes fixed
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb18
1 files changed, 10 insertions, 8 deletions
diff --git a/config/routes.rb b/config/routes.rb
index f3632e64d61..4501d79e650 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -39,6 +39,16 @@ Gitlab::Application.routes.draw do
get 'help/workflow' => 'help#workflow'
#
+ # Global snippets
+ #
+ resources :snippets do
+ member do
+ get "raw"
+ end
+ end
+ match "/s/:username" => "snippets#user_index", as: :user_snippets, constraints: { username: /.*/ }
+
+ #
# Public namespace
#
namespace :public do
@@ -100,14 +110,6 @@ Gitlab::Application.routes.draw do
get "errors/githost"
- resources :snippets do
- member do
- get "raw"
- get "my"
- end
- end
- match "/s/:username" => "snippets#user_index", as: :user_snippets, constraints: { username: /.*/ }
-
#
# Profile Area
#