def get_admin_gallery(uuid=None): gallery = Gallery.blank() return json.dumps(gallery), 200, {'Content-Type': 'application/json'}
def api_edit_gallery(uuid=None): if uuid: gallery = Gallery.get(uuid=uuid).to_dict(admin=True) else: gallery = Gallery.blank() return json.dumps(gallery), 200, {'Content-Type': 'application/json'}