12 lines
356 B
TypeScript
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);
|
|
} |