Update plugins/alldownloader.js
Browse files- plugins/alldownloader.js +6 -11
plugins/alldownloader.js
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
import express from 'express';
|
|
|
2 |
import {
|
3 |
facebookdl,
|
4 |
savefrom,
|
@@ -68,12 +69,6 @@ async function downloadMedia(media) {
|
|
68 |
* description: null
|
69 |
* schema:
|
70 |
* type: string
|
71 |
-
* - in: header
|
72 |
-
* name: x-api-key
|
73 |
-
* required: true
|
74 |
-
* description: API key for authentication
|
75 |
-
* schema:
|
76 |
-
* type: string
|
77 |
* responses:
|
78 |
* 200:
|
79 |
* description: Success
|
@@ -85,21 +80,21 @@ async function downloadMedia(media) {
|
|
85 |
* description: Internal Server Error
|
86 |
*/
|
87 |
|
88 |
-
|
89 |
-
AllDlRoutes.get('/api/v1/dl/xnxxsearch-v2',
|
90 |
try {
|
91 |
const q = req.query.q;
|
92 |
|
93 |
if (!q) {
|
94 |
return res.status(400).json({ error: "URL parameter is required." });
|
95 |
}
|
96 |
-
|
97 |
-
|
98 |
} catch (error) {
|
99 |
res.status(500).json({ error: error.message });
|
100 |
}
|
101 |
});
|
102 |
-
|
103 |
|
104 |
/**
|
105 |
* @swagger
|
|
|
1 |
import express from 'express';
|
2 |
+
import * as testings from 'xnxx-scraper';
|
3 |
import {
|
4 |
facebookdl,
|
5 |
savefrom,
|
|
|
69 |
* description: null
|
70 |
* schema:
|
71 |
* type: string
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
* responses:
|
73 |
* 200:
|
74 |
* description: Success
|
|
|
80 |
* description: Internal Server Error
|
81 |
*/
|
82 |
|
83 |
+
|
84 |
+
AllDlRoutes.get('/api/v1/dl/xnxxsearch-v2', apiLimiter, async (req, res) => {
|
85 |
try {
|
86 |
const q = req.query.q;
|
87 |
|
88 |
if (!q) {
|
89 |
return res.status(400).json({ error: "URL parameter is required." });
|
90 |
}
|
91 |
+
res.json({ message: "testing" });
|
92 |
+
console.log(testings);
|
93 |
} catch (error) {
|
94 |
res.status(500).json({ error: error.message });
|
95 |
}
|
96 |
});
|
97 |
+
|
98 |
|
99 |
/**
|
100 |
* @swagger
|