randydev commited on
Commit
26f825d
·
verified ·
1 Parent(s): 79167fb

Update plugins/alldownloader.js

Browse files
Files changed (1) hide show
  1. plugins/alldownloader.js +1 -45
plugins/alldownloader.js CHANGED
@@ -11,8 +11,7 @@ import {
11
  TiktokDownloader,
12
  XnxxDownloader,
13
  TwitterDownloader,
14
- InstagramDownloader,
15
- AllDownloadRequest
16
  } from '../lib/all.js';
17
 
18
  import { authenticateApiKey, apiLimiter } from '../middleware/midware.js';
@@ -92,49 +91,6 @@ AllDlRoutes.get('/api/v1/dl/sfilemobi-search', authenticateApiKey, apiLimiter, a
92
  }
93
  });
94
 
95
- /**
96
- * @swagger
97
- * /api/v1/dl/alldl:
98
- * get:
99
- * summary: All Downloader
100
- * tags: [ALL-Downloader]
101
- * parameters:
102
- * - in: query
103
- * name: url
104
- * required: true
105
- * description: null
106
- * schema:
107
- * type: string
108
- * - in: header
109
- * name: x-api-key
110
- * required: true
111
- * description: API key for authentication
112
- * schema:
113
- * type: string
114
- * responses:
115
- * 200:
116
- * description: Success
117
- * 400:
118
- * description: Bad Request (e.g., missing or invalid URL)
119
- * 401:
120
- * description: Unauthorized (e.g., missing or invalid API key)
121
- * 500:
122
- * description: Internal Server Error
123
- */
124
- AllDlRoutes.get('/api/v1/dl/alldl', authenticateApiKey, apiLimiter, async (req, res) => {
125
- try {
126
- const url = req.query.url;
127
-
128
- if (!url) {
129
- return res.status(400).json({ error: "URL parameter is required." });
130
- }
131
- const results = await AllDownloadRequest(url);
132
- res.json({ results });
133
- } catch (error) {
134
- res.status(500).json({ error: error.message });
135
- }
136
- });
137
-
138
  /**
139
  * @swagger
140
  * /api/v1/dl/instagram:
 
11
  TiktokDownloader,
12
  XnxxDownloader,
13
  TwitterDownloader,
14
+ InstagramDownloader
 
15
  } from '../lib/all.js';
16
 
17
  import { authenticateApiKey, apiLimiter } from '../middleware/midware.js';
 
91
  }
92
  });
93
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
94
  /**
95
  * @swagger
96
  * /api/v1/dl/instagram: