Update plugins/alldownloader.js
Browse files- plugins/alldownloader.js +0 -36
plugins/alldownloader.js
CHANGED
@@ -57,42 +57,6 @@ async function downloadMedia(media) {
|
|
57 |
}
|
58 |
}
|
59 |
|
60 |
-
/**
|
61 |
-
* @swagger
|
62 |
-
* /api/v1/dl/search/tiktok:
|
63 |
-
* get:
|
64 |
-
* summary: null
|
65 |
-
* tags: [ALL-Downloader]
|
66 |
-
* parameters:
|
67 |
-
* - in: query
|
68 |
-
* name: query
|
69 |
-
* required: true
|
70 |
-
* description: null
|
71 |
-
* schema:
|
72 |
-
* type: string
|
73 |
-
* responses:
|
74 |
-
* 200:
|
75 |
-
* description: Success
|
76 |
-
* 400:
|
77 |
-
* description: Bad Request (e.g., missing or invalid parameters)
|
78 |
-
* 401:
|
79 |
-
* description: Unauthorized (e.g., missing or invalid API key)
|
80 |
-
* 500:
|
81 |
-
* description: Internal Server Error
|
82 |
-
*/
|
83 |
-
AllDlRoutes.get('/api/v1/dl/search/tiktok', apiLimiter, async (req, res) => {
|
84 |
-
try {
|
85 |
-
const query = req.query.query;
|
86 |
-
if (!query) {
|
87 |
-
return res.status(400).json({ error: "parameters are required." });
|
88 |
-
}
|
89 |
-
const results = await SeachTiktok(query);
|
90 |
-
res.json({ message: results });
|
91 |
-
} catch (error) {
|
92 |
-
res.status(500).json({ error: error.message });
|
93 |
-
}
|
94 |
-
});
|
95 |
-
|
96 |
/**
|
97 |
* @swagger
|
98 |
* /api/v1/dl/xnxx-info-v2:
|
|
|
57 |
}
|
58 |
}
|
59 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
/**
|
61 |
* @swagger
|
62 |
* /api/v1/dl/xnxx-info-v2:
|