remove unused provider

This commit is contained in:
Inside4ndroid
2025-02-15 08:22:17 +00:00
parent af5b9a6996
commit 7d9f170601
2 changed files with 0 additions and 64 deletions
-20
View File
@@ -1,6 +1,5 @@
import express from "express";
import { getvidsrc } from "./src/vidsrcpro.js";
import { getasiaheroku } from "./src/asiaheroku.js";
const port = 3000;
@@ -36,25 +35,6 @@ app.get('/vidsrc/:tmdbId', async (req, res) => {
}
});
app.get('/asiaheroku/:tmdbId', async (req, res) => {
const id = req.params.tmdbId;
const season = req.query.s;
const episode = req.query.e;
try {
if (season && episode) {
const srcresponse = await getasiaheroku(id, season, episode);
res.status(200).json(srcresponse);
} else {
const vidsrcresponse = await getasiaheroku(id);
res.status(200).json(vidsrcresponse);
}
} catch (error) {
console.error('Error fetching data:', error);
res.status(500).json({ error: 'Failed to fetch data' });
}
});
app.listen(port, () => {
console.log(`Example app listening on port http://localhost:${port}`);
});