From 5b35000f16201bd631f161ef6d79b0a77dc2c27b Mon Sep 17 00:00:00 2001 From: Andrew8xx8 Date: Sun, 24 Mar 2013 22:31:14 +0400 Subject: Snippets feature refactored. Tests now use spinach --- config/routes.rb | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'config') diff --git a/config/routes.rb b/config/routes.rb index d87dd4abdb0..21a5eb9bfec 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -177,6 +177,14 @@ Gitlab::Application.routes.draw do match "/compare/:from...:to" => "compare#show", as: "compare", :via => [:get, :post], constraints: {from: /.+/, to: /.+/} + scope module: :projects do + resources :snippets do + member do + get "raw" + end + end + end + resources :wikis, only: [:show, :edit, :destroy, :create] do collection do get :pages @@ -244,21 +252,12 @@ Gitlab::Application.routes.draw do end end - scope module: :projects do - resources :snippets do - member do - get "raw" - end - end - end - resources :hooks, only: [:index, :create, :destroy] do member do get :test end end - resources :team, controller: 'team_members', only: [:index] resources :milestones, except: [:destroy] resources :labels, only: [:index] -- cgit v1.2.1