The Backbone.JS URLroot() model enables the URL function.
Syntax:
Model.URLroot()
Example:
Example
Output:
/exampleURL/models
Explanation:
In the above example, the URLroot() model enables the URL function so that the output is the URL where model’s resource is located.