mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
11 lines
269 B
JavaScript
11 lines
269 B
JavaScript
addEventListener('fetch', event => {
|
|
event.respondWith(handleRequest(event.request))
|
|
})
|
|
|
|
async function handleRequest(request) {
|
|
let url = new URL(request.url);
|
|
url.hostname = 'repo.yandex.ru';
|
|
url.pathname = '/clickhouse' + url.pathname;
|
|
return fetch(url)
|
|
}
|