summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-11-12 16:26:23 +0100
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-11-12 16:26:23 +0100
commitd343d9d8c2f3db0ca5f6fab8ad19e0f79f66e138 (patch)
treeb1aa9e241bec55dc283b74fae46e71a907e7be60 /lib
parenta5ab56fd9191e23dfa60707fa42802342c1563f8 (diff)
downloadgitlab-ce-d343d9d8c2f3db0ca5f6fab8ad19e0f79f66e138.tar.gz
Add grape routing print
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/tasks/grape.rake8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/tasks/grape.rake b/lib/tasks/grape.rake
new file mode 100644
index 00000000000..9980e0b7984
--- /dev/null
+++ b/lib/tasks/grape.rake
@@ -0,0 +1,8 @@
+namespace :grape do
+ desc 'Print compiled grape routes'
+ task routes: :environment do
+ API::API.routes.each do |route|
+ puts route
+ end
+ end
+end