randydev commited on
Commit
93067a0
·
verified ·
1 Parent(s): ae7bd46

Update plugins/alldownloader.js

Browse files
Files changed (1) hide show
  1. plugins/alldownloader.js +3 -3
plugins/alldownloader.js CHANGED
@@ -35,7 +35,7 @@ const AllDlRoutes = express.Router();
35
  * data:
36
  * type: object
37
  * properties:
38
- * data:
39
  * type: string
40
  * description: URL of the downloaded TikTok video
41
  * 400:
@@ -48,8 +48,8 @@ const AllDlRoutes = express.Router();
48
  AllDlRoutes.get('/api/v1/dl/tiktok', authenticateApiKey, apiLimiter, async (req, res) => {
49
  try {
50
  const url = req.query.url;
51
- const response = await TiktokDownloader(url);
52
- res.json(response);
53
  } catch (error) {
54
  res.status(401).json({ error: error.message });
55
  }
 
35
  * data:
36
  * type: object
37
  * properties:
38
+ * results:
39
  * type: string
40
  * description: URL of the downloaded TikTok video
41
  * 400:
 
48
  AllDlRoutes.get('/api/v1/dl/tiktok', authenticateApiKey, apiLimiter, async (req, res) => {
49
  try {
50
  const url = req.query.url;
51
+ const results = await TiktokDownloader(url);
52
+ res.json({ results });
53
  } catch (error) {
54
  res.status(401).json({ error: error.message });
55
  }