Allow users to specify a set of models, along with a set of allowable attributes
restormify({
models: [{
foo: {
model: db.models.foo,
methods: ['get','post'],
authenticated: true // or false, or an array of methods that are required to be authenticated
}
}],
authenticationMethod: function(req){} // takes the request object and returns boolean for authenticated or not authenticated
});
Allow users to specify a set of models, along with a set of allowable attributes