Update plugins/alldownloader.js
Browse files- 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 |
-
*
|
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
|
52 |
-
res.json(
|
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 |
}
|