def mainroute(): if request.method == 'GET': return getClientCartsAndItems() else: for cart in Carts.query(): cart.key.delete() return make_response('deleted')
def nabo(): if request.method == 'GET': return make_response(jsonify({'carts': Carts.getName()}), 200) else: for cart in Carts.query(): cart.key.delete() return make_response('deleted')
def nabo(): if request.method == "GET": return make_response(jsonify({"carts": Carts.getName()}), 200) else: for cart in Carts.query(): cart.key.delete() return make_response("deleted")