Skip to content

Instantly share code, notes, and snippets.

@tonyjunkes
Last active December 18, 2015 23:59
Show Gist options
  • Save tonyjunkes/5864989 to your computer and use it in GitHub Desktop.
Save tonyjunkes/5864989 to your computer and use it in GitHub Desktop.
Example pseudo code showing the use of FW/1 URL routes in the Application.cfc.
component extends="org.corfield.framework"
output="false"
{
/*
...Some code...
*/
VARIABLES.framework = {
routes = [
{ "/section/:value" = "/section/item/parameter/:value" } //Example - "/blog/:post" = "/blog/show/post/:post"
]
//Other framework vars would also be set here.
};
/*
...Some more code...
*/
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment