my-cart route in json (add json routes in same path)

This commit is contained in:
resteve 2014-10-02 13:23:05 +02:00
parent ad528635bc
commit 9e65d5e31f
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ class ShipmentAddressForm(Form):
return False
return True
@cart.route('/my-cart', methods=['GET', 'PUT'], endpoint="my-cart")
@cart.route('/json/my-cart', methods=['GET', 'PUT'], endpoint="my-cart")
@tryton.transaction()
def my_cart(lang):
'''All Carts JSON'''