Capture route into $resource to enable further processing