Пример #1
0
def update_episode(episode_id):
    return admin_service.update_episode(episode_id, json.loads(request.get_data(True, as_text=True)))
Пример #2
0
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)))
Пример #3
0
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)))
Пример #4
0
def update_episode(episode_id):
    return admin_service.update_episode(episode_id, json.loads(request.get_data(True, as_text=True)))