cirandas.net

ref: master

lib/tasks/grape_routes.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
desc "Print out grape routes"
task :grape_routes => :environment do
  #require 'api/api.rb'
  Api::App.routes.each do |route|
    puts route
    method = route.route_method
    path = route.route_path
    puts "     #{method} #{path}"
  end
end