DashXx / plugins /aio.js
HerzaJ's picture
Upload 56 files
7c363b0 verified
raw
history blame contribute delete
763 Bytes
const { aio } = require('notmebotz-tools');
const handler = async (req, res) => {
try {
const { url } = req.query;
if (!url) {
return res.status(400).json({
success: false,
error: 'Missing required parameter: url'
});
}
const result = await aio(url);
res.json({
author: "Herza",
success: true,
msg: result.data
});
} catch (error) {
res.status(500).json({
success: false,
error: error.message
});
}
};
module.exports = {
name: 'All In One DL',
description: 'Download All Video Without WM',
type: 'GET',
routes: ['api/download/aio'],
tags: ['downloader', 'tools', 'misc'],
parameters: ['url', 'key'],
enabled: true,
main: ['Downloader'],
handler
}