What is the pattern to access server side business logic with ember data. For example, I have a"markAsFavourite(itemId)" function on my backend API. How can i call this function through ember data, and reload the specified item record after the function is evaluated?
I can make this by hand in the controller, but i dont think its a good idea to split my API access into two places.
Or is there a better way to handle this problem?