summaryrefslogtreecommitdiff
path: root/config/routes/admin.rb
diff options
context:
space:
mode:
authorQingyu Zhao <qzhao@gitlab.com>2019-06-27 23:42:14 +1000
committerQingyu Zhao <qzhao@gitlab.com>2019-07-18 23:11:08 +1000
commit10e51ac5f7087bb9cbc495fc15195994fb8763e4 (patch)
treedb910ca437f1187f726fd60f7567592d5042673b /config/routes/admin.rb
parent0854f18352e72c2bcc0beca601d1ea48b490d1be (diff)
downloadgitlab-ce-10e51ac5f7087bb9cbc495fc15195994fb8763e4.tar.gz
Add profile mode to extend request profilingadd-profile-mode-to-extend-request-profiling
Extend the support for "X-Profile-Token: <token>" to have an additional header that defines type of profile we are looking for, like: X-Profile-Mode: execution X-Profile-Mode: memory
Diffstat (limited to 'config/routes/admin.rb')
-rw-r--r--config/routes/admin.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes/admin.rb b/config/routes/admin.rb
index f609739d9fd..6f9a5552564 100644
--- a/config/routes/admin.rb
+++ b/config/routes/admin.rb
@@ -73,7 +73,7 @@ namespace :admin do
resource :background_jobs, controller: 'background_jobs', only: [:show]
resource :system_info, controller: 'system_info', only: [:show]
- resources :requests_profiles, only: [:index, :show], param: :name, constraints: { name: /.+\.html/ }
+ resources :requests_profiles, only: [:index, :show], param: :name, constraints: { name: /.+\.(html|txt)/ }
resources :projects, only: [:index]