nginx-proxy-manager/src/frontend/js/models/access-list.js

26 lines
523 B
JavaScript
Raw Normal View History

2018-07-24 02:56:39 -04:00
'use strict';
const Backbone = require('backbone');
const model = Backbone.Model.extend({
idAttribute: 'id',
defaults: function () {
return {
id: undefined,
2018-07-24 02:56:39 -04:00
created_on: null,
modified_on: null,
name: '',
2018-07-24 02:56:39 -04:00
// The following are expansions:
owner: null
};
}
});
module.exports = {
Model: model,
Collection: Backbone.Collection.extend({
model: model
})
};