BigW Consortium Gitlab

Commit 96f3a88c by Dmitriy Zaporozhets

Restrict auto generated routes

parent 102aaf06
...@@ -113,8 +113,8 @@ Gitlab::Application.routes.draw do ...@@ -113,8 +113,8 @@ Gitlab::Application.routes.draw do
put :update_username put :update_username
end end
resource :notifications resource :notifications, only: [:show, :update]
resource :password resource :password, only: [:new, :create]
end end
resources :keys resources :keys
...@@ -125,7 +125,7 @@ Gitlab::Application.routes.draw do ...@@ -125,7 +125,7 @@ Gitlab::Application.routes.draw do
# #
# Dashboard Area # Dashboard Area
# #
resource :dashboard, controller: "dashboard" do resource :dashboard, controller: "dashboard", only: [:show] do
member do member do
get :projects get :projects
get :issues get :issues
...@@ -198,7 +198,7 @@ Gitlab::Application.routes.draw do ...@@ -198,7 +198,7 @@ Gitlab::Application.routes.draw do
end end
end end
resource :repository do resource :repository, only: [:show] do
member do member do
get "branches" get "branches"
get "tags" get "tags"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment