nginx-proxy-manager-zh/frontend/js/models/stream.js

33 lines
819 B
JavaScript
Raw Normal View History

2018-07-08 21:22:10 -04:00
const Backbone = require('backbone');
const model = Backbone.Model.extend({
idAttribute: 'id',
defaults: function () {
return {
id: undefined,
2018-07-08 21:22:10 -04:00
created_on: null,
modified_on: null,
2018-07-25 18:23:32 -04:00
incoming_port: null,
forwarding_host: null,
2018-07-25 18:23:32 -04:00
forwarding_port: null,
2018-07-08 21:22:10 -04:00
tcp_forwarding: true,
udp_forwarding: false,
enabled: true,
2018-08-07 06:27:20 -04:00
meta: {},
2024-03-24 15:01:24 -04:00
certificate_id: 0,
domain_names: [],
2018-08-07 06:27:20 -04:00
// The following are expansions:
2024-03-24 15:01:24 -04:00
owner: null,
certificate: null
2018-07-08 21:22:10 -04:00
};
}
});
module.exports = {
Model: model,
Collection: Backbone.Collection.extend({
model: model
})
};