Skip to content

Instantly share code, notes, and snippets.

@xifengzhu
Created May 6, 2014 02:11
Show Gist options
  • Save xifengzhu/f439d0308ad0e46ec736 to your computer and use it in GitHub Desktop.
Save xifengzhu/f439d0308ad0e46ec736 to your computer and use it in GitHub Desktop.
desc "API Routes"
task :routes do
Project::API.routes.each do |api|
method = api.route_method.ljust(10)
path = api.route_path
puts " #{method} #{path}"
end
end
@xifengzhu
Copy link
Author

add this code in your Rakefile and then run: rake routes. you will see only the grape routes
or as a task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment