12345678910111213141516171819202122232425262728293031323334353637 |
- const Backbone = require('backbone');
- const model = Backbone.Model.extend({
- idAttribute: 'id',
- defaults: function () {
- return {
- id: undefined,
- created_on: null,
- modified_on: null,
- domain_names: [],
- forward_http_code: 0,
- forward_scheme: null,
- forward_domain_name: '',
- preserve_path: true,
- certificate_id: 0,
- ssl_forced: false,
- hsts_enabled: false,
- hsts_subdomains: false,
- block_exploits: false,
- http2_support: false,
- advanced_config: '',
- enabled: true,
- meta: {},
- // The following are expansions:
- owner: null,
- certificate: null
- };
- }
- });
- module.exports = {
- Model: model,
- Collection: Backbone.Collection.extend({
- model: model
- })
- };
|