Manages routing behavior.
The default implementation provides before and after callbacks that are
executed before and after a route gets triggered.
 
        
        
            
    
    
    
    
    
    
    
        
    
    
    
    
    
    
    
        
    
    
    
    
        
    
     
    
    
    
     
    
    
    
        Methods
        
            
    
    
        #
        (static) after(route, argsopt)
    
    
    
        Gets called after a route gets triggered.
The default implementation does nothing.
     
    
        Parameters:
        
    
    
        
        | Name | 
        
        Type | 
        
        Attributes | 
        
        
        Description | 
    
    
    
    
        
            
                route | 
            
            
            
                
string
            
             | 
            
                
                
                
                
                 | 
            
            
            Route name.  | 
        
    
        
            
                args | 
            
            
            
                
Array
            
             | 
            
                
                
                    <optional> 
                
                
                
                 | 
            
            
            Route parameters.  | 
        
    
    
     
    
    
    
    
    
    
    
    
    
    
    
    
    
        
    
    
    
    
        
            
    
    
        #
        (static) beforeRoute(route, argsopt) → {boolean}
    
    
    
        Checks if a user is authenticated before triggering a route.
     
    
        Parameters:
        
    
    
        
        | Name | 
        
        Type | 
        
        Attributes | 
        
        
        Description | 
    
    
    
    
        
            
                route | 
            
            
            
                
string
            
             | 
            
                
                
                
                
                 | 
            
            
            Route name.  | 
        
    
        
            
                args | 
            
            
            
                
Array
            
             | 
            
                
                
                    <optional> 
                
                
                
                 | 
            
            
            Route parameters.  | 
        
    
    
     
    
    
    
    
    
    
    
    
    
    
    
    
    
        
    
    
    
    
    
    Returns:
        
            
    true if the route should be triggered; false
otherwise.
 
    - 
        Type
    
 
    - 
        
boolean
    
 
            
     
        
            
    
    
        #
        (static) start()
    
    
    
        Creates a router instance, attaches it to the App object and starts it.
     
    
    
    
    
    
    
    
    
    
    
    
    
    
        
    
    
    
    
    
        
            
    
    
        #
        (static) stop()
    
    
    
        Internal use only - for unit testing Routers.
Disables Backbone.history temporarily.
     
    
    
    
    
    
    
    
    
        
            - Deprecated:
 - since 7.10. Please use Core.Router#stop instead.