

@blueprint.route('/<path:pid>', methods=['GET'])
@api_wrapper
@require_login
@block_before_competition(WebError('The competition has not begun yet!'))
@block_after_competition(WebError('The competition is over!'))
def get_single_problem_hook(pid):
    problem_info = api.problem.get_problem(pid, tid=api.user.get_user()['tid'])
    return WebSuccess(data=problem_info)

dataset/ETHPy150Open IceCTF/ctf-platform/api/api/routes/problem.py get_single_problem_hook/original