mirror of
https://github.com/Inside4ndroid/TMDB-Embed-API.git
synced 2026-10-22 09:35:11 +00:00
removed redundant code
This commit is contained in:
@@ -8,7 +8,7 @@ const app = express()
|
||||
|
||||
app.get('/', (req, res) => {
|
||||
res.status(200).json({
|
||||
intro: "Welcome to the unofficial vidsrc provider: check the provider website @ https://${host}/ ",
|
||||
intro: "Welcome to the unofficial vidsrc provider: check the provider website @ https://vidsrc.cc/ ",
|
||||
routes: {
|
||||
movie: "/vidsrc/:movieTMDBid",
|
||||
show: "/vidsrc/:showTMDBid?s=seasonNumber&e=episodeNumber"
|
||||
@@ -36,10 +36,6 @@ app.get('/vidsrc/:tmdbId', async (req, res) => {
|
||||
}
|
||||
});
|
||||
|
||||
function wait(ms) {
|
||||
return new Promise(resolve => setTimeout(resolve, ms));
|
||||
}
|
||||
|
||||
app.listen(port, () => {
|
||||
console.log(`Example app listening on port http://localhost:${port}`);
|
||||
});
|
||||
Reference in New Issue
Block a user