def show_taxon_details(taxon_name): taxon_details = api.taxa.get_details(database.get_connection(), taxon_name) if taxon_details is None: raise errors.NotFound('Could not find taxon.') return jsonify(taxon_details)
def show_taxon_list(): return jsonify(api.taxa.get_list(database.get_connection()))
def show_media_list(): return jsonify(api.media.get_list(database.get_connection()))
def show_settings(): return jsonify(api.system_settings.get(database.get_connection()))
def show_media_details(media_id): media_details = api.media.get_details(database.get_connection(), media_id) if media_details is None: raise errors.NotFound('Could not find media.') return jsonify(media_details)