randydev commited on
Commit
1652df7
·
verified ·
1 Parent(s): 591cb89

Update plugins/alldownloader.js

Browse files
Files changed (1) hide show
  1. 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/endpoints:
63
  * get:
64
- * summary: Custom api endpoint all
65
- * tags: [ALL-Endpoint]
66
  * parameters:
67
  * - in: query
68
- * name: endpoints
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 e = req.query.endpoints;
100
  const params = req.query.params;
101
- const search = req.query.search;
102
 
103
- if (!e && !params && !search) {
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);