From 4be12be62a9dc30faecff139684f7537f0726d45 Mon Sep 17 00:00:00 2001 From: Andrew8xx8 Date: Mon, 25 Mar 2013 02:17:20 +0400 Subject: [PATCH] Routes fixed --- config/routes.rb | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index f3632e6..4501d79 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 # -- libgit2 0.21.2