Move json to API and strip index action

This commit is contained in:
Matt-Yorkley
2018-10-23 10:34:42 +01:00
parent 0bd67bd06a
commit 334eebeab1
4 changed files with 27 additions and 15 deletions

View File

@@ -1,6 +1,7 @@
angular.module("admin.resources").factory 'OrderResource', ($resource) ->
$resource('/admin/orders/:id/:action.json', {}, {
'index':
url: '/api/orders.json'
method: 'GET'
'update':
method: 'PUT'