config/Router.cfc
. This is called the application router and it is based on the router core class: coldbox.system.web.routing.Router
. Here is where you will configure router settings and define routes using our routing DSL.Router.cfc
configure()
method. It will be decorated with all the capabilities to work with any request much like any event handler or interceptor. In this router you will be doing 1 of 2 things:SesBaseUrl
: The multi-domain URL base URL of your application: http://localhost
SesBasePath
: The multi-domain path with no protocol or hostHtmlBaseUrl
: The same path as SESBaseURL
but without any index.cfm
in it (Just in case you are using index.cfm
rewrite). This is a setting used most likely by the HTML <base>
tag.HtmlBasePath
: Does not include protocol or hostsetEnabled( boolean )
setFullRewrites( boolean )
index.cfm
will be used in the URLs. If false, then /index.cfm/ will be added to all generated URLs. Default is false.setUniqueURLS( boolean )
setBaseURL( string )
setLooseMatching( boolean )
setMultiDomainDiscovery( boolean )
setExtensionDetection( boolean )
json, xml, html, pdf
which can allow you to build awesome RESTful web services. Default is true.setValidExtensions( list )
json, jsont, xml, cfm, cfml, html, htm, rss, pdf
setThrowOnInvalidExtensions( boolean )