summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorKamil TrzciƄski <ayufan@ayufan.eu>2018-04-06 00:07:36 +0200
committerMayra Cabrera <mcabrera@gitlab.com>2018-04-06 21:20:16 -0500
commit2c6c61815edada16c4477c938209c24c647e1798 (patch)
tree1d896b8ac1c5160b33116bc6d60e785df51cce79 /config
parent6b2954ec8a2e17c913872c32386cb2b08f2db1c2 (diff)
downloadgitlab-ce-2c6c61815edada16c4477c938209c24c647e1798.tar.gz
Get rid of Redis when dealing with deploy tokens
We use controller actions to pass a newly created token and errors
Diffstat (limited to 'config')
-rw-r--r--config/routes/project.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/config/routes/project.rb b/config/routes/project.rb
index 27d3569829f..e760a9d7ed2 100644
--- a/config/routes/project.rb
+++ b/config/routes/project.rb
@@ -88,7 +88,7 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do
end
end
- resources :deploy_tokens, constraints: { id: /\d+/ }, only: :create do
+ resources :deploy_tokens, constraints: { id: /\d+/ }, only: [] do
member do
put :revoke
end
@@ -432,7 +432,9 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do
post :reset_cache
end
resource :integrations, only: [:show]
- resource :repository, only: [:show], controller: :repository
+ resource :repository, only: [:show], controller: :repository do
+ post :create_deploy_token, path: 'deploy_token/create'
+ end
end
# Since both wiki and repository routing contains wildcard characters