canned icon indicating copy to clipboard operation
canned copied to clipboard

List all routes available

Open sideshowcoder opened this issue 11 years ago • 0 comments

Currently canned resolves the routes on request, which is great since they can be modified while canned is running without any problems, adding new files/folders/etc. One thing missing so is the option to actually list what is available, currently this is mostly done by using tree to show the folder structure of the example folder, which prints something like this:

screen shot 2014-12-16 at 09 55 18

Sadly this does not take into account the rules canned has to resolve the paths, it would be awesome to get something like this:

example(master*)$ canned routes
verb   path
GET  /search
PUT  /comment/1
...

This means crawling the current file tree and resolving the routes and print.

sideshowcoder avatar Dec 16 '14 09:12 sideshowcoder