def showAllItemsJSON(): """ Get a lsit of all of the items in JSON format. URLs: '/catalog/item/all/JSON/' Args: None """ items = readAllItems() return jsonify(items=[i.serialize for i in items])
def showAllItems(): """ Show all of the items in the catalog. URLs: '/catalog/items/all/' Args: None """ items = readAllItems() return render_template('show_all_items.html', items=items)