33 lines
820 B
JavaScript
Raw Normal View History

2018-07-09 11:22:10 +10:00
const Backbone = require('backbone');
const model = Backbone.Model.extend({
idAttribute: 'id',
defaults: function () {
return {
id: undefined,
created_on: null,
modified_on: null,
domain_names: [],
certificate_id: 0,
ssl_forced: false,
2018-11-21 08:04:31 +10:00
http2_support: false,
2019-02-18 18:21:45 +10:00
hsts_enabled: false,
hsts_subdomains: false,
enabled: true,
meta: {},
advanced_config: '',
2018-07-26 08:23:32 +10:00
// The following are expansions:
owner: null,
certificate: null
2018-07-09 11:22:10 +10:00
};
}
});
module.exports = {
Model: model,
Collection: Backbone.Collection.extend({
model: model
})
};