1

for example :

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

1 Answer 1

1

The app.resource() method returns a new Resource object, which can be used to further map pathnames, nest resources, and more.

The details of the same can be found here: Express-resource

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.