ssl-passthrough-host.js 648 B

123456789101112131415161718192021222324252627
  1. const Backbone = require('backbone');
  2. const model = Backbone.Model.extend({
  3. idAttribute: 'id',
  4. defaults: function () {
  5. return {
  6. id: undefined,
  7. created_on: null,
  8. modified_on: null,
  9. domain_name: null,
  10. forwarding_host: null,
  11. forwarding_port: null,
  12. enabled: true,
  13. meta: {},
  14. // The following are expansions:
  15. owner: null
  16. };
  17. }
  18. });
  19. module.exports = {
  20. Model: model,
  21. Collection: Backbone.Collection.extend({
  22. model: model
  23. })
  24. };