diff options
author | James Lopez <james@jameslopez.es> | 2016-05-03 11:34:13 +0200 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-05-03 11:34:13 +0200 |
commit | 548c91e3c58d03d1e99c7945d14afe4abd605217 (patch) | |
tree | 6297684ea014e215b4dcb27478f8c9d9f3620835 /config/routes.rb | |
parent | 22ff009a54b281f8db2fd28530b84ebf53bf9de6 (diff) | |
parent | 2a78e03ad54baf78b10fb3297cf0f38d78b87aa8 (diff) | |
download | gitlab-ce-548c91e3c58d03d1e99c7945d14afe4abd605217.tar.gz |
Merge branch 'feature/project-export' of gitlab.com:gitlab-org/gitlab-ce into feature/project-import
# Conflicts:
# lib/gitlab/import_export/command_line_util.rb
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/config/routes.rb b/config/routes.rb index 9f667dca638..8ad0b4874df 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -16,16 +16,18 @@ Rails.application.routes.draw do end end - # Make the built-in Rails routes available in development, otherwise they'd - # get swallowed by the `namespace/project` route matcher below. - # - # See https://git.io/va79N if Rails.env.development? + # Make the built-in Rails routes available in development, otherwise they'd + # get swallowed by the `namespace/project` route matcher below. + # + # See https://git.io/va79N get '/rails/mailers' => 'rails/mailers#index' get '/rails/mailers/:path' => 'rails/mailers#preview' get '/rails/info/properties' => 'rails/info#properties' get '/rails/info/routes' => 'rails/info#routes' get '/rails/info' => 'rails/info#index' + + mount LetterOpenerWeb::Engine, at: '/rails/letter_opener' end namespace :ci do @@ -218,8 +220,6 @@ Rails.application.routes.draw do resources :keys, only: [:show, :destroy] resources :identities, except: [:show] - delete 'stop_impersonation' => 'impersonation#destroy', on: :collection - member do get :projects get :keys @@ -229,12 +229,14 @@ Rails.application.routes.draw do put :unblock put :unlock put :confirm - post 'impersonate' => 'impersonation#create' + post :impersonate patch :disable_two_factor delete 'remove/:email_id', action: 'remove_email', as: 'remove_email' end end + resource :impersonation, only: :destroy + resources :abuse_reports, only: [:index, :destroy] resources :spam_logs, only: [:index, :destroy] @@ -714,6 +716,7 @@ Rails.application.routes.draw do post :toggle_subscription get :referenced_merge_requests get :related_branches + get :can_create_branch end collection do post :bulk_update |