summaryrefslogtreecommitdiff
path: root/config/routes.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-11-08 13:04:02 +0000
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-11-08 13:04:02 +0000
commit35142a097865b1083ddea95c8507aab07e52a4ed (patch)
tree0abf6c8df6537d0bdb61a14d4cd610528bdae738 /config/routes.rb
parent7be41074bb6596a41a5b6689ee98ab02cf4be50a (diff)
parent41990128a33c268f3af2db80f4ac224802ac8b76 (diff)
downloadgitlab-ce-35142a097865b1083ddea95c8507aab07e52a4ed.tar.gz
Merge branch 'dz-refactor-project-routes' into 'master'
Refactor project routing ## What does this MR do? Refactor project routing: * split on multiple files * improve routing order ## Why was this MR needed? It makes it easier to maintain and modify project routing ## What are the relevant issue numbers? Extracted from https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7121 See merge request !7329
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 659ea51bc75..7bf6c03e69b 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -2,12 +2,6 @@ require 'sidekiq/web'
require 'sidekiq/cron/web'
require 'api/api'
-class ActionDispatch::Routing::Mapper
- def draw(routes_name)
- instance_eval(File.read(Rails.root.join("config/routes/#{routes_name}.rb")))
- end
-end
-
Rails.application.routes.draw do
concern :access_requestable do
post :request_access, on: :collection