mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-03 07:53:39 +00:00
Initial commit
This commit is contained in:
22
manager/src/frontend/js/models/access.js
Normal file
22
manager/src/frontend/js/models/access.js
Normal file
@@ -0,0 +1,22 @@
|
||||
'use strict';
|
||||
|
||||
import Backbone from 'backbone';
|
||||
|
||||
const model = Backbone.Model.extend({
|
||||
idAttribute: '_id',
|
||||
|
||||
defaults: function () {
|
||||
return {
|
||||
name: '',
|
||||
items: [],
|
||||
hosts: []
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
module.exports = {
|
||||
Model: model,
|
||||
Collection: Backbone.Collection.extend({
|
||||
model: model
|
||||
})
|
||||
};
|
Reference in New Issue
Block a user