Back
wildcard()
<cfscript>
mapper()
// Enables `[controller]` and `[controller]/[action]`, only via `GET` requests.
.wildcard()
// Enables `[controller]/[action]/[key]` as well.
.wildcard(mapKey=true)
// Also enables patterns like `[controller].[format]` and
// `[controller]/[action].[format]`
.wildcard(mapFormat=true)
// Allow additional methods beyond just `GET`
//
// Note that this can open some serious security holes unless you use `verifies`
// in the controller to make sure that requests changing data can only occur
// with a `POST` method.
.wildcard(methods="get,post")
.end();
</cfscript>
Copied!