Getting route details

I have been working on creating a REST API with ColdBox. I have
created a handler to take care of the static documentation of the API.
In this process I thought it might be cool if I could somehow link the
route with the static documentation making the documentation less
"static".

Is there a way that I can reach into the framework and it will return
to me all of the routes and the associates handlers and actions?

John Blayter
Land line: 303.731.3009
Mobile: 303.325.1979
http://www.blayter.com/john/

Denver ColdFusion User Group Manager
http://denvercfug.org/

Hi John,

Yes you can.

Get a reference to the SES interceptor:
getInterceptor(“SES”)
or via wirebox
DSL: coldbox:interceptor:SES

Then use the documented methods for routing: http://www.coldbox.org/documents/api/ColdBoxDocs-3.5.0/coldbox/system/interceptors/SES.html

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano