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:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-22 16:11:23 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-22 16:11:23 +0400
commit96f3a88c0111b56cce8ac77b7c48225510b2b73b (patch)
tree3fb67c3c0388ff5ae80ec40b57b13e8355205d28 /config
parent102aaf0682e7e670fecbaf2cdc9ed1c35647f04f (diff)
Restrict auto generated routes
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 1b184fcac0b..3b6a861b668 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -113,8 +113,8 @@ Gitlab::Application.routes.draw do
put :update_username
end
- resource :notifications
- resource :password
+ resource :notifications, only: [:show, :update]
+ resource :password, only: [:new, :create]
end
resources :keys
@@ -125,7 +125,7 @@ Gitlab::Application.routes.draw do
#
# Dashboard Area
#
- resource :dashboard, controller: "dashboard" do
+ resource :dashboard, controller: "dashboard", only: [:show] do
member do
get :projects
get :issues
@@ -198,7 +198,7 @@ Gitlab::Application.routes.draw do
end
end
- resource :repository do
+ resource :repository, only: [:show] do
member do
get "branches"
get "tags"