This repository has been archived on 2024-04-06. You can view files and clone it, but cannot push or open issues or pull requests.
WebIPTV/pages/api/index.ts

12 lines
356 B
TypeScript

import fs from "node:fs";
export default function root(req, res) {
// const data = [
// "#EXTM3U",
// "#EXTINF:-1 tvg-name=\"Tv\"",
// Buffer.from(req.query.url, "base64").toString("utf8"),
// ""
// ]
// res.end(data.join("\r\n"));
fs.createReadStream("/Users/sirherobrine23/gitWordir/Sirherobrine23/WebIPTV/iptv.m3u").pipe(res);
}