mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-26 20:56:48 +00:00
12 lines
331 B
CoffeeScript
12 lines
331 B
CoffeeScript
'use strict'
|
|
|
|
angular.module('store').
|
|
factory('CartFactory', ['$resource', '$window', '$http', ($resource, $window, $http) ->
|
|
Cart = $resource '/open_food_network/cart/:cart_id.json', {},
|
|
{ 'show': { method: 'GET'} }
|
|
|
|
load: (id, callback) ->
|
|
Cart.show {cart_id: id}, (cart) ->
|
|
callback(cart)
|
|
])
|