예제 #1
0
def get_car_list():
    all_cars = repository.get_car_list(request.args)
    total = len(repository.get_cars())

    result = cars_schema.dump(all_cars)

    return jsonify({'total': total, 'rows': result})
예제 #2
0
def get_cars():
    all_cars = repository.get_cars()

    result = cars_schema.dump(all_cars)

    return jsonify(result)
예제 #3
0
def mobile():
    cars = repository.get_cars()
    return render_template("mobile.html", cars=cars)