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
diff options
context:
space:
mode:
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb13
1 files changed, 10 insertions, 3 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 86f42822299..598a52cddb3 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -45,12 +45,19 @@ Rails.application.routes.draw do
use_doorkeeper_openid_connect
# Sign up
- get 'users/sign_up/welcome' => 'registrations#welcome'
- patch 'users/sign_up/update_registration' => 'registrations#update_registration'
+ scope path: '/users/sign_up', module: :registrations, as: :users_sign_up do
+ get :welcome
+ patch :update_registration
+ resource :experience_level, only: [:show, :update]
+
+ Gitlab.ee do
+ resources :groups, only: [:new, :create]
+ resources :projects, only: [:new, :create]
+ end
+ end
# Search
get 'search' => 'search#show'
- get 'search/autocomplete' => 'search#autocomplete', as: :search_autocomplete
get 'search/count' => 'search#count', as: :search_count
# JSON Web Token