intridea/grape — pull request #300 by aiwilliams (2012-12-27 21:36:55+00:00)
Title: Grape::API.routes does not work with mounted Grape::API apps.

This very simple spec shows that the expected number of routes is incorrect. I can enhance these specs further, but I want to get a dialog started before I do too much work. I see that an ```Grape::Endpoint``` is added when ```mount``` is invoked. That endpoint is then asked for it's ```routes```, but this does not work when the endpoint represents an ```Grape::API```.

My question: Should the ```Grape::Endpoint#routes``` method understand this issue and answer the ```Grape::API.routes``` from the ```options[:app]```?