mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-04-25 16:50:52 +00:00
23 lines
390 B
JavaScript
23 lines
390 B
JavaScript
'use strict';
|
|
|
|
const Backbone = require('backbone');
|
|
|
|
const model = Backbone.Model.extend({
|
|
idAttribute: 'username',
|
|
|
|
defaults: function () {
|
|
return {
|
|
username: '',
|
|
password: '',
|
|
hint: ''
|
|
};
|
|
}
|
|
});
|
|
|
|
module.exports = {
|
|
Model: model,
|
|
Collection: Backbone.Collection.extend({
|
|
model: model
|
|
})
|
|
};
|