Move exchange products endpoint to api namespace and make it work for outgoing exchanges

This commit is contained in:
luisramos0
2019-11-13 13:51:25 +00:00
parent 9adbdc377d
commit 89628c27f3
6 changed files with 138 additions and 37 deletions

View File

@@ -1,5 +1,5 @@
angular.module('admin.orderCycles').factory('Product', ($resource) ->
Product = $resource('/admin/exchanges/:exchange_id/products.json', {}, {
Product = $resource('/api/exchanges/:exchange_id/products.json', {}, {
'index':
method: 'GET'
isArray: true