cartodb-4.42/lib/assets/javascripts/dashboard/data/dashboard-url-model.js
2024-04-06 05:25:13 +00:00

29 lines
716 B
JavaScript

var UrlModel = require('dashboard/data/url-model');
var DashboardVisUrlModel = require('dashboard/data/dashboard-vis-url-model');
var DashboardDatasetsUrlModel = require('dashboard/data/dashboard-datasets-url-model');
/**
* URLs associated with the dashboard.
*/
var DashboardUrlModel = UrlModel.extend({
datasets: function () {
return new DashboardDatasetsUrlModel({
base_url: this.urlToPath('datasets')
});
},
maps: function () {
return new DashboardVisUrlModel({
base_url: this.urlToPath('maps')
});
},
deepInsights: function () {
return new DashboardVisUrlModel({
base_url: this.urlToPath('deep-insights')
});
}
});
module.exports = DashboardUrlModel;