summaryrefslogtreecommitdiff
path: root/config/routes.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-01-28 18:08:35 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-28 18:08:35 +0000
commit6315ed9630fb1c6ade3114beb762cd1568d79219 (patch)
tree2a5d31936d09c14420c8f4c8bd752e268f0eb19f /config/routes.rb
parentfedf978f9aa1909ed7bb3fad767ad120a1c6bd7b (diff)
downloadgitlab-ce-6315ed9630fb1c6ade3114beb762cd1568d79219.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb26
1 files changed, 19 insertions, 7 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 518cf985718..be0ef0106f4 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -120,9 +120,7 @@ Rails.application.routes.draw do
draw :country
draw :country_state
draw :subscription
- end
- Gitlab.ee do
constraints(-> (*) { Gitlab::Analytics.any_features_enabled? }) do
draw :analytics
end
@@ -168,11 +166,6 @@ Rails.application.routes.draw do
end
end
- draw :api
- draw :sidekiq
- draw :help
- draw :snippets
-
# Invites
resources :invites, only: [:show], constraints: { id: /[A-Za-z0-9_-]+/ } do
member do
@@ -193,6 +186,25 @@ Rails.application.routes.draw do
# Notification settings
resources :notification_settings, only: [:create, :update]
+ resources :groups, only: [:index, :new, :create] do
+ post :preview_markdown
+ end
+
+ resources :projects, only: [:index, :new, :create]
+
+ get '/projects/:id' => 'projects#resolve'
+
+ Gitlab.ee do
+ scope '/-/push_from_secondary/:geo_node_id' do
+ draw :git_http
+ end
+ end
+
+ draw :git_http
+ draw :api
+ draw :sidekiq
+ draw :help
+ draw :snippets
draw :google_api
draw :import
draw :uploads