summaryrefslogtreecommitdiff
path: root/lib/tasks/grape.rake
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tasks/grape.rake')
-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