mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-02-02 17:58:13 -05:00
36 lines
866 B
JavaScript
36 lines
866 B
JavaScript
'use strict';
|
|
|
|
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_ip: '',
|
|
forward_port: null,
|
|
access_list_id: 0,
|
|
certificate_id: 0,
|
|
ssl_forced: false,
|
|
caching_enabled: false,
|
|
block_exploits: false,
|
|
meta: {},
|
|
// The following are expansions:
|
|
owner: null,
|
|
access_list: null,
|
|
certificate: null
|
|
};
|
|
}
|
|
});
|
|
|
|
module.exports = {
|
|
Model: model,
|
|
Collection: Backbone.Collection.extend({
|
|
model: model
|
|
})
|
|
};
|