cartodb-4.42/lib/assets/javascripts/dashboard/data/dashboard-url-model.js

29 lines
716 B
JavaScript
Raw Normal View History

2024-04-06 13:25:13 +08:00
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;