Update plugins/alldownloader.js
Browse files- plugins/alldownloader.js +1 -40
plugins/alldownloader.js
CHANGED
@@ -10,7 +10,7 @@ import {
|
|
10 |
PinterestDL,
|
11 |
sfilemobiSearch,
|
12 |
TiktokDownloader,
|
13 |
-
TwitterDownloader,
|
14 |
TwitterDownloderV3,
|
15 |
TwitterDownloaderV2,
|
16 |
TeraboxDownloader,
|
@@ -139,45 +139,6 @@ AllDlRoutes.get('/api/v1/dl/twitter-v3', async (req, res) => {
|
|
139 |
}
|
140 |
});
|
141 |
|
142 |
-
/**
|
143 |
-
* @swagger
|
144 |
-
* /api/v1/dl/twitter-v2:
|
145 |
-
* get:
|
146 |
-
* summary: Twitter V2 Downloader
|
147 |
-
* tags: [ALL-Downloader]
|
148 |
-
* parameters:
|
149 |
-
* - in: query
|
150 |
-
* name: url
|
151 |
-
* required: true
|
152 |
-
* description: null
|
153 |
-
* schema:
|
154 |
-
* type: string
|
155 |
-
* - in: header
|
156 |
-
* name: x-api-key
|
157 |
-
* required: true
|
158 |
-
* description: API key for authentication
|
159 |
-
* schema:
|
160 |
-
* type: string
|
161 |
-
* example: "lu api key di @aknuserbot telegram"
|
162 |
-
* responses:
|
163 |
-
* 200:
|
164 |
-
* description: Success
|
165 |
-
* 400:
|
166 |
-
* description: Bad Request (e.g., missing or invalid URL)
|
167 |
-
* 401:
|
168 |
-
* description: Unauthorized (e.g., missing or invalid API key)
|
169 |
-
* 500:
|
170 |
-
* description: Internal Server Error
|
171 |
-
*/
|
172 |
-
AllDlRoutes.get('/api/v1/dl/twitter-v2', async (req, res) => {
|
173 |
-
try {
|
174 |
-
const q = req.query.url;
|
175 |
-
const results = await TwitterDownloaderV2(q);
|
176 |
-
res.json({ message: results });
|
177 |
-
} catch (error) {
|
178 |
-
res.status(500).json({ error: error.message });
|
179 |
-
}
|
180 |
-
});
|
181 |
|
182 |
/**
|
183 |
* @swagger
|
|
|
10 |
PinterestDL,
|
11 |
sfilemobiSearch,
|
12 |
TiktokDownloader,
|
13 |
+
// TwitterDownloader,
|
14 |
TwitterDownloderV3,
|
15 |
TwitterDownloaderV2,
|
16 |
TeraboxDownloader,
|
|
|
139 |
}
|
140 |
});
|
141 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
142 |
|
143 |
/**
|
144 |
* @swagger
|