I am new to sails.js and I am attempting to get up to speed on the API built-ins. I have an authenticated API up and running for a sample library app that I am building.
The app is pretty simple. I have a Book model that contains the relevant book data. A User has a many-to-many relationship with a Book. When I perform GET /book, all of the books stored in the DB are returned.
My question is, what is the best way to return only the books that the current user is associated with? The blueprint API calls for populate (/user/1/books) returns 404.