def args_from_url(url, endpoint):
    r = match_url(url, 'GET')
    if r[0] != endpoint:
        raise NotFound()
    return r[1]
dataset/ETHPy150Open miguelgrinberg/api-pycon2015/api/helpers.py/args_from_url/original