randydev commited on
Commit
5f76dc5
·
verified ·
1 Parent(s): 3218ffb

Update plugins/alldownloader.js

Browse files
Files changed (1) hide show
  1. plugins/alldownloader.js +8 -8
plugins/alldownloader.js CHANGED
@@ -59,25 +59,25 @@ async function downloadMedia(media) {
59
 
60
  /**
61
  * @swagger
62
- * /api/v1/custom/endpoint:
63
  * get:
64
- * summary: Custom API for Devs
65
  * tags: [ALL-Dev]
66
  * parameters:
67
  * - in: query
68
- * name: UseEnd
69
  * required: true
70
  * description: The base URL to fetch data from
71
  * schema:
72
  * type: string
73
  * - in: query
74
- * name: params
75
  * required: true
76
  * description: Additional parameters for the request
77
  * schema:
78
  * type: string
79
  * - in: query
80
- * name: q
81
  * required: true
82
  * description: Search query
83
  * schema:
@@ -94,9 +94,9 @@ async function downloadMedia(media) {
94
  */
95
  AllDlRoutes.get('/api/v1/custom/endpoint', apiLimiter, async (req, res) => {
96
  try {
97
- const url = req.query.UseEnd;
98
- const params = req.query.params;
99
- const search = req.query.q;
100
 
101
  if (!url || !params || !search) {
102
  return res.status(400).json({ error: "All parameters are required." });
 
59
 
60
  /**
61
  * @swagger
62
+ * /api/v1/custom/itzpire:
63
  * get:
64
+ * summary: Custom itzpire API for Devs
65
  * tags: [ALL-Dev]
66
  * parameters:
67
  * - in: query
68
+ * name: custom_endpoint
69
  * required: true
70
  * description: The base URL to fetch data from
71
  * schema:
72
  * type: string
73
  * - in: query
74
+ * name: custom_params
75
  * required: true
76
  * description: Additional parameters for the request
77
  * schema:
78
  * type: string
79
  * - in: query
80
+ * name: custom_search
81
  * required: true
82
  * description: Search query
83
  * schema:
 
94
  */
95
  AllDlRoutes.get('/api/v1/custom/endpoint', apiLimiter, async (req, res) => {
96
  try {
97
+ const url = req.query.custom_endpoint;
98
+ const params = req.query.custom_params;
99
+ const search = req.query.custom_search;
100
 
101
  if (!url || !params || !search) {
102
  return res.status(400).json({ error: "All parameters are required." });