for example :
var Resource = app.resource = restful.model('resource', mongoose.Schema({ title: String, year: Number, })) .methods(['get', 'post', 'put', 'delete']);
for example :
var Resource = app.resource = restful.model('resource', mongoose.Schema({ title: String, year: Number, })) .methods(['get', 'post', 'put', 'delete']);