Update index.js
Browse files
index.js
CHANGED
|
@@ -25,8 +25,10 @@ app.all('/dl/start', async (req, res) => {
|
|
| 25 |
} else if(/^https?:\/\/(?:www\.)?threads\.net\/@[^\/]+\/post\/([a-zA-Z0-9_-]+)/.test(url)) {
|
| 26 |
const thr = await threads(url);
|
| 27 |
res.json(thr);
|
|
|
|
|
|
|
| 28 |
}
|
| 29 |
});
|
| 30 |
|
| 31 |
-
const PORT =
|
| 32 |
app.listen(PORT, () => console.log(`Server running on port ${PORT}`));
|
|
|
|
| 25 |
} else if(/^https?:\/\/(?:www\.)?threads\.net\/@[^\/]+\/post\/([a-zA-Z0-9_-]+)/.test(url)) {
|
| 26 |
const thr = await threads(url);
|
| 27 |
res.json(thr);
|
| 28 |
+
} else {
|
| 29 |
+
res.json({ status: false, r: 'not supported' });
|
| 30 |
}
|
| 31 |
});
|
| 32 |
|
| 33 |
+
const PORT = 7860;
|
| 34 |
app.listen(PORT, () => console.log(`Server running on port ${PORT}`));
|