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.rb25
1 files changed, 20 insertions, 5 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 90a26c0a20f..38030a24cb5 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -50,6 +50,7 @@ Rails.application.routes.draw do
resource :welcome, only: [:show, :update], controller: 'welcome' do
Gitlab.ee do
get :trial_getting_started, on: :collection
+ get :trial_onboarding_board, on: :collection
end
end
@@ -57,6 +58,7 @@ Rails.application.routes.draw do
Gitlab.ee do
resources :groups, only: [:new, :create]
+ resources :group_invites, only: [:new, :create]
resources :projects, only: [:new, :create]
end
end
@@ -130,8 +132,24 @@ Rails.application.routes.draw do
# UserCallouts
resources :user_callouts, only: [:create]
- get 'ide' => 'ide#index'
- get 'ide/*vueroute' => 'ide#index', format: false
+ scope :ide, as: :ide, format: false do
+ get '/', to: 'ide#index'
+ get '/project', to: 'ide#index'
+
+ scope path: 'project/:project_id', as: :project, constraints: { project_id: Gitlab::PathRegex.full_namespace_route_regex } do
+ %w[edit tree blob].each do |action|
+ get "/#{action}", to: 'ide#index'
+ get "/#{action}/*branch/-/*path", to: 'ide#index'
+ get "/#{action}/*branch/-", to: 'ide#index'
+ get "/#{action}/*branch", to: 'ide#index'
+ end
+
+ get '/merge_requests/:merge_request_id', to: 'ide#index', constraints: { merge_request_id: /\d+/ }
+ get '/', to: 'ide#index'
+ end
+ end
+
+ resource :projects
draw :operations
draw :jira_connect
@@ -165,9 +183,6 @@ Rails.application.routes.draw do
end
end
- # Notification settings
- resources :notification_settings, only: [:create, :update]
-
resources :invites, only: [:show], constraints: { id: /[A-Za-z0-9_-]+/ } do
member do
post :accept