src/utils.js
/**
 * Disables all remote methods on a model.
 * @param Model - The model to process.
 */
Disables all remote methods on a model.
@param Model - The model to process.
Disables all remote methods on a model . @param Model - The model to process .
function hideAll(Model) {
	disableRemoteMethods(Model, [
		'find',
		'findById',
		'create',
		'upsert',
		'deleteById',
		'replaceById',
		'updateAll',
		'createChangeStream',
		'count',
		'findOne',
		'exists',
		'replaceOrCreate',
		'upsertWithWhere',
	]);
	disableRemoteMethods(Model, 'prototype.updateAttributes');
}
function hideAll ( Model ) { disableRemoteMethods ( Model , [ 'find' , 'findById' , 'create' , 'upsert' , 'deleteById' , 'replaceById' , 'updateAll' , 'createChangeStream' , 'count' , 'findOne' , 'exists' , 'replaceOrCreate' , 'upsertWithWhere' , ] ) ; disableRemoteMethods ( Model , 'prototype.updateAttributes' ) ; }
Disables all remote methods on a model.
Disables all remote methods on a model .