Return to v2.0 docs

end()


Configuration Routing struct mapper


Call this to end a nested routing block or the entire route configuration. This method is chained on a sequence of routing mapper method calls started by mapper().

<cfscript>
mapper()
.namespace("admin")
.resources("products")
.end() // Ends the `namespace` block.
.scope(package="public")
.resources(name="products", nested=true)
.resources("variations")
.end() // Ends the nested `resources` block.
.end() // Ends the `scope` block.
.end(); // Ends the `mapper` block.
</cfscript>

Related Functions

Routing