Update plugins/alldownloader.js
Browse files- plugins/alldownloader.js +0 -45
plugins/alldownloader.js
CHANGED
@@ -22,7 +22,6 @@ import {
|
|
22 |
InstagramDownloader,
|
23 |
InstagramDLV3,
|
24 |
InstagramDLV2,
|
25 |
-
InstagramDLV4,
|
26 |
XInfoDownloaderV2,
|
27 |
TelegramUseLog,
|
28 |
} from '../lib/all.js';
|
@@ -227,50 +226,6 @@ AllDlRoutes.get('/api/v1/dl/xnxx-search-v2', authenticateApiKey, apiLimiter, asy
|
|
227 |
}
|
228 |
});
|
229 |
|
230 |
-
/**
|
231 |
-
* @swagger
|
232 |
-
* /api/v1/dl/instagram-v4:
|
233 |
-
* get:
|
234 |
-
* summary: Instagram V4 Downloader
|
235 |
-
* tags: [ALL-Downloader]
|
236 |
-
* parameters:
|
237 |
-
* - in: query
|
238 |
-
* name: url
|
239 |
-
* required: true
|
240 |
-
* description: null
|
241 |
-
* schema:
|
242 |
-
* type: string
|
243 |
-
* - in: header
|
244 |
-
* name: x-api-key
|
245 |
-
* required: true
|
246 |
-
* description: API key for authentication
|
247 |
-
* schema:
|
248 |
-
* type: string
|
249 |
-
* example: "lu api key di @aknuserbot telegram"
|
250 |
-
* responses:
|
251 |
-
* 200:
|
252 |
-
* description: Success
|
253 |
-
* 400:
|
254 |
-
* description: Bad Request (e.g., missing or invalid URL)
|
255 |
-
* 401:
|
256 |
-
* description: Unauthorized (e.g., missing or invalid API key)
|
257 |
-
* 500:
|
258 |
-
* description: Internal Server Error
|
259 |
-
*/
|
260 |
-
AllDlRoutes.get('/api/v1/dl/instagram-v4', authenticateApiKey, apiLimiter, async (req, res) => {
|
261 |
-
try {
|
262 |
-
const q = req.query.url;
|
263 |
-
if (!q) {
|
264 |
-
return res.status(400).json({ error: "URL parameter is required." });
|
265 |
-
}
|
266 |
-
const results = await InstagramDLV4(q);
|
267 |
-
res.json({ results });
|
268 |
-
} catch (error) {
|
269 |
-
res.status(500).json({ error: error.message });
|
270 |
-
}
|
271 |
-
});
|
272 |
-
|
273 |
-
|
274 |
/**
|
275 |
* @swagger
|
276 |
* /api/v1/dl/instagram-v3:
|
|
|
22 |
InstagramDownloader,
|
23 |
InstagramDLV3,
|
24 |
InstagramDLV2,
|
|
|
25 |
XInfoDownloaderV2,
|
26 |
TelegramUseLog,
|
27 |
} from '../lib/all.js';
|
|
|
226 |
}
|
227 |
});
|
228 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
229 |
/**
|
230 |
* @swagger
|
231 |
* /api/v1/dl/instagram-v3:
|