def index(): return jsonify(resources=Light.fetch_all())
def show(light_id): light = Light.fetch(light_id) return jsonify(light)