SailsJS Services are pieces of reusable code that can be shared by your controllers. Your business logic should live in your Service (and not in your controller!). I know I am stepping on egg shells here, but unfortunately many web frameworks have bastarized the definition of models (the "M" in "MVC") and limited it only to where database stuff happens. However by definition Models are much more than your Data Access Layer.
Your new post is loading...