mirror of
https://github.com/jc21/nginx-proxy-manager.git
synced 2024-08-30 18:22:48 +00:00
28 lines
648 B
JavaScript
28 lines
648 B
JavaScript
|
const Backbone = require('backbone');
|
||
|
|
||
|
const model = Backbone.Model.extend({
|
||
|
idAttribute: 'id',
|
||
|
|
||
|
defaults: function () {
|
||
|
return {
|
||
|
id: undefined,
|
||
|
created_on: null,
|
||
|
modified_on: null,
|
||
|
domain_name: null,
|
||
|
forwarding_host: null,
|
||
|
forwarding_port: null,
|
||
|
enabled: true,
|
||
|
meta: {},
|
||
|
// The following are expansions:
|
||
|
owner: null
|
||
|
};
|
||
|
}
|
||
|
});
|
||
|
|
||
|
module.exports = {
|
||
|
Model: model,
|
||
|
Collection: Backbone.Collection.extend({
|
||
|
model: model
|
||
|
})
|
||
|
};
|