Created
September 8, 2013 20:41
-
-
Save kennethdavidbuck/6488223 to your computer and use it in GitHub Desktop.
dynamic route created
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Dynamically create routes | |
*/ | |
App.Router.map(function(){ | |
this.resource('browse',function(){ | |
this.resource(table.plural,function(){ | |
this.route('add'); | |
this.route('query',{ path:'/:query_string' }); | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment