mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-02-02 09:48:13 -05:00
33 lines
754 B
JavaScript
33 lines
754 B
JavaScript
'use strict';
|
|
|
|
const Backbone = require('backbone');
|
|
|
|
const model = Backbone.Model.extend({
|
|
idAttribute: 'id',
|
|
|
|
defaults: function () {
|
|
return {
|
|
created_on: null,
|
|
modified_on: null,
|
|
owner: null,
|
|
domain_name: '',
|
|
forward_ip: '',
|
|
forward_port: null,
|
|
access_list_id: null,
|
|
ssl_enabled: false,
|
|
ssl_provider: false,
|
|
ssl_forced: false,
|
|
caching_enabled: false,
|
|
block_exploits: false,
|
|
meta: []
|
|
};
|
|
}
|
|
});
|
|
|
|
module.exports = {
|
|
Model: model,
|
|
Collection: Backbone.Collection.extend({
|
|
model: model
|
|
})
|
|
};
|