def update_episode(episode_id): return admin_service.update_episode(episode_id, json.loads(request.get_data(True, as_text=True)))
def episode(episode_id): if request.method == 'GET': return admin_service.get_episode(episode_id) elif request.method == 'PUT': return admin_service.update_episode(episode_id, json.loads(request.get_data(True, as_text=True)))