summaryrefslogtreecommitdiff
path: root/config/routes/sherlock.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-10-05 18:43:47 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-10-05 18:43:47 +0300
commitb9e259ddedd31eb600b42d414891e533134ad315 (patch)
tree88a4d779f1923643b51a1867a5d8062000e2da44 /config/routes/sherlock.rb
parentba4c392721bc5d784b5d71a5ea41ee83edebc923 (diff)
downloadgitlab-ce-b9e259ddedd31eb600b42d414891e533134ad315.tar.gz
Cleanup config/routes.rb even further by extracting more routes into separate filesdz-more-route-cleanup
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'config/routes/sherlock.rb')
-rw-r--r--config/routes/sherlock.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/config/routes/sherlock.rb b/config/routes/sherlock.rb
new file mode 100644
index 00000000000..c9969f91c36
--- /dev/null
+++ b/config/routes/sherlock.rb
@@ -0,0 +1,12 @@
+if Gitlab::Sherlock.enabled?
+ namespace :sherlock do
+ resources :transactions, only: [:index, :show] do
+ resources :queries, only: [:show]
+ resources :file_samples, only: [:show]
+
+ collection do
+ delete :destroy_all
+ end
+ end
+ end
+end