Backbone.JS Router Routes()

The Backbone.JS Router Routes() method defines the URL representation of application’s objects on routers.

Syntax:

Router.Routes

Example:

  

  
Example  
  
  
  
  
  
  
  
  

Output:

Called Route 1.

Explanation:
In the above example the Routes() method calls the desired route.