Update plugins/alldownloader.js
Browse files- plugins/alldownloader.js +7 -7
plugins/alldownloader.js
CHANGED
@@ -59,13 +59,13 @@ async function downloadMedia(media) {
|
|
59 |
|
60 |
/**
|
61 |
* @swagger
|
62 |
-
* /api/v1/custom/
|
63 |
* get:
|
64 |
-
* summary:
|
65 |
-
* tags: [ALL-
|
66 |
* parameters:
|
67 |
* - in: query
|
68 |
-
* name:
|
69 |
* required: true
|
70 |
* description: null
|
71 |
* schema:
|
@@ -96,11 +96,11 @@ async function downloadMedia(media) {
|
|
96 |
*/
|
97 |
AllDlRoutes.get('/api/v1/custom/endpoint', apiLimiter, async (req, res) => {
|
98 |
try {
|
99 |
-
const
|
100 |
const params = req.query.params;
|
101 |
-
const search = req.query.
|
102 |
|
103 |
-
if (!
|
104 |
return res.status(400).json({ error: "parameter is required." });
|
105 |
}
|
106 |
const results = await IzreCustom(e, params, search);
|
|
|
59 |
|
60 |
/**
|
61 |
* @swagger
|
62 |
+
* /api/v1/custom-dev/all-api:
|
63 |
* get:
|
64 |
+
* summary: CustomDevv api all
|
65 |
+
* tags: [ALL-Dev]
|
66 |
* parameters:
|
67 |
* - in: query
|
68 |
+
* name: UseEnd
|
69 |
* required: true
|
70 |
* description: null
|
71 |
* schema:
|
|
|
96 |
*/
|
97 |
AllDlRoutes.get('/api/v1/custom/endpoint', apiLimiter, async (req, res) => {
|
98 |
try {
|
99 |
+
const url = req.query.UseEnd;
|
100 |
const params = req.query.params;
|
101 |
+
const search = req.query.q;
|
102 |
|
103 |
+
if (!url && !params && !search) {
|
104 |
return res.status(400).json({ error: "parameter is required." });
|
105 |
}
|
106 |
const results = await IzreCustom(e, params, search);
|