Access lists shell, redirections work
This commit is contained in:
24
src/frontend/js/models/access-list.js
Normal file
24
src/frontend/js/models/access-list.js
Normal file
@ -0,0 +1,24 @@
|
||||
'use strict';
|
||||
|
||||
const Backbone = require('backbone');
|
||||
|
||||
const model = Backbone.Model.extend({
|
||||
idAttribute: 'id',
|
||||
|
||||
defaults: function () {
|
||||
return {
|
||||
id: 0,
|
||||
created_on: null,
|
||||
modified_on: null,
|
||||
// The following are expansions:
|
||||
owner: null
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
module.exports = {
|
||||
Model: model,
|
||||
Collection: Backbone.Collection.extend({
|
||||
model: model
|
||||
})
|
||||
};
|
@ -13,7 +13,7 @@ const model = Backbone.Model.extend({
|
||||
domain_names: [],
|
||||
forward_ip: '',
|
||||
forward_port: null,
|
||||
access_list_id: null,
|
||||
access_list_id: 0,
|
||||
ssl_enabled: false,
|
||||
ssl_provider: false,
|
||||
ssl_forced: false,
|
||||
|
@ -10,14 +10,16 @@ const model = Backbone.Model.extend({
|
||||
id: 0,
|
||||
created_on: null,
|
||||
modified_on: null,
|
||||
owner: null,
|
||||
domain_name: '',
|
||||
domain_names: [],
|
||||
forward_domain_name: '',
|
||||
preserve_path: false,
|
||||
preserve_path: true,
|
||||
ssl_enabled: false,
|
||||
ssl_provider: false,
|
||||
ssl_forced: false,
|
||||
block_exploits: false,
|
||||
meta: []
|
||||
meta: {},
|
||||
// The following are expansions:
|
||||
owner: null
|
||||
};
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user