Skip to content

Instantly share code, notes, and snippets.

@ivanionut
Created October 18, 2018 16:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ivanionut/7dd22189f7bd4d12501484866baae86d to your computer and use it in GitHub Desktop.
Save ivanionut/7dd22189f7bd4d12501484866baae86d to your computer and use it in GitHub Desktop.
routes.cfm
<cfscript>
mapper()
.root(to="main##index", method="get")
.resources(name="products", path="products", nested=true)
.get(name="product", pattern="products/[key].html", to="products##show")
.root(to="products##index", method="get")
.end()
.end();
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment