src/utils.js
/**
 * Disable remote methods
 * @param {Function} Model The model to process.
 * @param {String|Array} methods The methods to disable
 */
Disable remote methods
@param {Function} Model The model to process.
@param {String|Array} methods The methods to disable
Disable remote methods @param { Function } Model The model to process . @param { String|Array } methods The methods to disable
function disableRemoteMethods(Model, methods) {
	assert(typeof Model === 'function', 'Model must be a class (function)');
	methods = Array.isArray(methods) ? methods : [methods];
	methods.map(method => Model.disableRemoteMethodByName(method));
}
function disableRemoteMethods ( Model , methods ) { assert ( typeof Model === 'function' , 'Model must be a class (function)' ) ; methods = Array . isArray ( methods ) ? methods : [ methods ] ; methods . map ( method => Model . disableRemoteMethodByName ( method ) ) ; }
Disable remote methods
 @param {Function} Model The model to process.
Disable remote methods @param { Function } Model The model to process .