Created
May 6, 2014 02:11
-
-
Save xifengzhu/f439d0308ad0e46ec736 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
add this code in your Rakefile and then run: rake routes. you will see only the grape routes
or as a task