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

30 lines
644 B
JavaScript
Raw Normal View History

2018-07-08 21:22:10 -04:00
'use strict';
const Backbone = require('backbone');
const model = Backbone.Model.extend({
idAttribute: 'id',
defaults: function () {
return {
2018-07-18 19:47:55 -04:00
id: 0,
2018-07-08 21:22:10 -04:00
created_on: null,
modified_on: null,
owner: null,
2018-07-24 04:33:00 -04:00
incoming_port: 3000,
2018-07-08 21:22:10 -04:00
forward_ip: '',
2018-07-24 04:33:00 -04:00
forwarding_port: 3000,
2018-07-08 21:22:10 -04:00
tcp_forwarding: true,
udp_forwarding: false,
2018-07-24 04:33:00 -04:00
meta: {}
2018-07-08 21:22:10 -04:00
};
}
});
module.exports = {
Model: model,
Collection: Backbone.Collection.extend({
model: model
})
};