Upgrade to ExtJS 4.0.1 - Released 05/18/2011
[extjs.git] / jsbuilder / src / generators / app / files / app / routes.js
1 /**
2  * The Router maps local urls to controller and action pairs. This is used primarily 
3  * for providing history support without reloading the page. Example usage:
4  * 
5  * Connects http://myapp.com/#home to the index controller's overview action
6  * map.connect("home", {controller: 'index', action: 'overview'});
7  * 
8  * Connects urls like "images/myImage.jpg" to the images controller's show action, passing
9  * "myImage.jpg" as the "url" property of the options object each controller action receives
10  * map.connect("images/:url", {controller: 'images', action: 'show'});
11  */
12 Ext.Router.draw(function(map) {
13     
14     
15     //These are default fallback routes and can be removed if not needed
16     map.connect(':controller/:action');
17     map.connect(':controller/:action/:id');
18 });