

def includeme(config):
    assets_view = _add_cors_header(static_view('h:../build', cache_max_age=None, use_subpath=True))
    config.add_view(view=assets_view, route_name='assets')
    config.add_route('assets', '/assets/*subpath')
    assets_env = Environment('/assets', 'h/assets.ini', 'build/manifest.json')
    config.add_request_method((lambda r: assets_env), name='assets_env', reify=True)

dataset/ETHPy150Open hypothesis/h/h/assets.py includeme/original