Add grape routing print
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
a5ab56fd91
commit
d343d9d8c2
1 changed files with 8 additions and 0 deletions
8
lib/tasks/grape.rake
Normal file
8
lib/tasks/grape.rake
Normal file
|
@ -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
|
Loading…
Reference in a new issue