fast72 commited on
Commit
085da5b
·
verified ·
1 Parent(s): ac967c9

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +3 -1
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 = 8080;
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}`));