Disable Blueprints

First of all you need to disable all existing blueprints in config/blueprints.js .

Create Routes

Define Controller Action

Each model method will return a promise.



Find All Products


Update Product


Delete Product


Source Code



Want to learn more about Sails.js ? Please enroll into my course on Udemy: Node:js : Building Rest Apis with Sails.js for only $15  : https://www.udemy.com/building-rest-a…