def METHOD_NAME(temp_dir):
    Path(f'{temp_dir}/assets').mkdir()
    for ext in ['.xml', '.mp4', '.php', '', '.txt', '.html', '.png']:
        Path(f'{temp_dir}/assets/file{ext}').write_text(ext)
    Path(f'{temp_dir}/assets/index.html').write_text('index')
    assert 'success' in client.conf(
        {
            "listeners": {
                "*:7080": {"pass": "routes"},
                "*:7081": {"pass": "routes"},
            },
            "routes": [{"action": {"share": f'{temp_dir}/assets$uri'}}],
            "applications": {},
        }
    )