From 3c578b2a59f20860ea1f928c0b05c8fe2f53f62f Mon Sep 17 00:00:00 2001 From: Lann <98427364+ERLANRAHMAT@users.noreply.github.com> Date: Sat, 25 Nov 2023 18:16:52 +0700 Subject: [PATCH] Create xnxxs.js --- tools/download/xnxxs.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 tools/download/xnxxs.js diff --git a/tools/download/xnxxs.js b/tools/download/xnxxs.js new file mode 100644 index 0000000..857859f --- /dev/null +++ b/tools/download/xnxxs.js @@ -0,0 +1,22 @@ +/* +Tools Xnxx Search +*/ + +const axios = require('axios'); +const { baseUrl } = require('../config.js') + +async function xnxxs(q) { + try { + const { data } = await axios.get(`${baseUrl}/tools/xnxxsearch?q=${q}`, { + headers: { + 'accept': 'application/json', + }, + }); + return data; + } catch (error) { + console.error(error); + return 'Internal Server Error!'; + } +} + +module.exports = { xnxxs }