nginx-proxy-manager/frontend/js/models/access-list.js
2020-04-10 17:33:14 -07:00

26 lines
574 B
JavaScript

const Backbone = require('backbone');
const model = Backbone.Model.extend({
idAttribute: 'id',
defaults: function () {
return {
id: undefined,
created_on: null,
modified_on: null,
name: '',
items: [],
clients: [],
// The following are expansions:
owner: null
};
}
});
module.exports = {
Model: model,
Collection: Backbone.Collection.extend({
model: model
})
};