Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorAndrey Kumanyaev <me@zzet.org>2013-01-23 01:03:52 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-25 00:31:25 +0400
commit7658f8c151b22680cf594d028e180a8a859fc9b8 (patch)
tree35a3a892dd6d6cf8b4e548272db137680d4928f6 /config
parent7534154b44f920005e6732bbcc9e9af391b81546 (diff)
update routes
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb44
1 files changed, 24 insertions, 20 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 69ac18127d4..e8af16387bc 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -56,6 +56,7 @@ Gitlab::Application.routes.draw do
put :unblock
end
end
+
resources :groups, constraints: { id: /[^\/]+/ } do
member do
put :project_update
@@ -63,26 +64,31 @@ Gitlab::Application.routes.draw do
delete :remove_project
end
end
- resources :projects, constraints: { id: /[a-zA-Z.\/0-9_\-]+/ }, except: [:new, :create] do
- member do
- get :team
- put :team_update
- end
- scope module: :projects do
- resources :members, only: [:edit, :update, :destroy]
- end
- end
- resources :teams do #, constraints: { id: /[^\/]+/ } do end
+
+ resources :teams, constraints: { id: /[^\/]+/ } do
scope module: :teams do
- resources :members, only: [:edit, :update, :destroy, :new, :create]
- resources :projects, only: [:edit, :update, :destroy, :new, :create]
+ resources :members, only: [:edit, :update, :destroy, :new, :create]
+ resources :projects, only: [:edit, :update, :destroy, :new, :create], constraints: { id: /[a-zA-Z.\/0-9_\-]+/ }
end
end
+
resources :hooks, only: [:index, :create, :destroy] do
get :test
end
+
resource :logs, only: [:show]
resource :resque, controller: 'resque', only: [:show]
+
+ resources :projects, constraints: { id: /[a-zA-Z.\/0-9_\-]+/ }, except: [:new, :create] do
+ member do
+ get :team
+ put :team_update
+ end
+ scope module: :projects, constraints: { id: /[^\/]+/ } do
+ resources :members, only: [:edit, :update, :destroy]
+ end
+ end
+
root to: "dashboard#index"
end
@@ -116,7 +122,6 @@ Gitlab::Application.routes.draw do
get "dashboard/issues" => "dashboard#issues"
get "dashboard/merge_requests" => "dashboard#merge_requests"
-
#
# Groups Area
#
@@ -130,19 +135,18 @@ Gitlab::Application.routes.draw do
end
end
- resources :teams do
+ #
+ # Teams Area
+ #
+ resources :teams, constraints: { id: /[^\/]+/ } do
member do
get :issues
get :merge_requests
get :search
- post :delegate_projects
- delete :relegate_project
- put :update_access
end
scope module: :teams do
- resources :members
- resources :projects, only: [:index, :show] do
- end
+ resources :members, only: [:index, :new, :create, :edit, :update, :destroy]
+ resources :projects, only: [:index, :new, :create, :edit, :update, :destroy], constraints: { id: /[a-zA-Z.0-9_\-\/]+/ }
end
collection do
get :search