Skip to content
Snippets Groups Projects
Commit 96f3a88c authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Restrict auto generated routes

parent 102aaf06
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
@@ -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
Loading
Loading
@@ -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"
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment