Blame view

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