You've already forked nginx-proxy-manager
							
							
				mirror of
				https://github.com/NginxProxyManager/nginx-proxy-manager.git
				synced 2025-11-04 04:11:42 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			574 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			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
 | 
						|
    })
 | 
						|
};
 |