summaryrefslogtreecommitdiff
path: root/config/routes.rb
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2016-06-01 18:07:23 +0200
committerRémy Coutable <remy@rymai.me>2016-06-14 13:07:26 +0200
commitd71fbe0dbdb3b7aba6f71e6d3d50daaa890769e9 (patch)
tree9e0c6fa7768bb5899ddf9e25d009347e462fda9d /config/routes.rb
parentd26f81239a33b80694783ee35f0da0e2ed082c9b (diff)
downloadgitlab-ce-d71fbe0dbdb3b7aba6f71e6d3d50daaa890769e9.tar.gz
Factorize #request_access and #approve_access_request into a new AccessRequestActions controller concern
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 62c892ee9f4..2eccb19deff 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -30,6 +30,11 @@ Rails.application.routes.draw do
mount LetterOpenerWeb::Engine, at: '/rails/letter_opener'
end
+ concern :access_requestable do
+ post :request_access, on: :collection
+ post :approve_access_request_access_request, on: :member
+ end
+
namespace :ci do
# CI API
Ci::API::API.logger Rails.logger