Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-04-10 16:22:31 +0300
committerDouwe Maan <douwe@gitlab.com>2015-04-14 13:07:33 +0300
commit39f389ae0fff5706b73b03c8fb5fc4e3dd7da638 (patch)
tree405b1daea83883b1fc416ca21749da4282576117 /config
parent90dafe31c4b1bb54bcd0476a873c4f5cdb62e981 (diff)
Add invites controller.
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb
index de21f418329..bd2a791f94a 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -53,6 +53,15 @@ Gitlab::Application.routes.draw do
end
get '/s/:username' => 'snippets#user_index', as: :user_snippets, constraints: { username: /.*/ }
+ #
+ # Invites
+ #
+
+ resources :invites, only: [:show], constraints: { id: /[A-Za-z0-9_-]+/ } do
+ member do
+ post :accept
+ end
+ end
#
# Import