Пример #1
0
def mainroute():
    if request.method == 'GET':
        return getClientCartsAndItems()
    else:
        for cart in Carts.query():
            cart.key.delete()
        return make_response('deleted')
Пример #2
0
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')
Пример #3
0
def mainroute():
        if request.method == 'GET':
                return getClientCartsAndItems()
        else:
                for cart in Carts.query():
                        cart.key.delete()
                return make_response('deleted')
Пример #4
0
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")