mirror of
https://github.com/wahyd4/iptv-cloudflare-proxy.git
synced 2026-08-08 20:57:18 +10:00
13 lines
321 B
JavaScript
13 lines
321 B
JavaScript
const domain = "live.cooltv.top"
|
|
export default {
|
|
async fetch(request, env) {
|
|
let url = new URL(request.url);
|
|
if (url.pathname.startsWith('/')) {
|
|
url.hostname = domain;
|
|
let new_request = new Request(url, request);
|
|
return fetch(new_request);
|
|
}
|
|
return env.ASSETS.fetch(request);
|
|
},
|
|
};
|