I want to programmatically change the route parameters before $ resource creates a url. I cannot use the angular http interceptor to do this, since the route is already concatenated at this point.
Given Assortment.model.js
module.exports = function($resource) { return $resource("", {}, { get: { url: "/assortment/:model/:id", method: "GET", params: {id: "@id", model: "@model"}
... and some controller.js
["Supplier", function(Supplier) { Supplier.Assortment.get({ id: 5, model: "user" }) }]
How can I use a hook that will always convert {model: "user"} to {model: "user"}
source share