mirror of
https://github.com/MasterAcnolo/Freedom-Loader.git
synced 2026-07-29 18:25:47 +02:00
Fix: Add Small Comms for clarity
This commit is contained in:
@@ -18,6 +18,7 @@ async function downloadController(req, res) {
|
|||||||
if (!options.url || !isValidUrl(options.url)) return res.status(400).send("❌ Invalid URL !");
|
if (!options.url || !isValidUrl(options.url)) return res.status(400).send("❌ Invalid URL !");
|
||||||
if (options.outputFolder && !isSafePath(options.outputFolder)) return res.status(400).send("❌ Save Path Not Allowed.");
|
if (options.outputFolder && !isSafePath(options.outputFolder)) return res.status(400).send("❌ Save Path Not Allowed.");
|
||||||
|
|
||||||
|
// Get output folder when the download is finished,
|
||||||
const filePath = await fetchDownload(options, listeners, speedListeners);
|
const filePath = await fetchDownload(options, listeners, speedListeners);
|
||||||
notifyDownloadFinished(filePath);
|
notifyDownloadFinished(filePath);
|
||||||
res.send("✅ Download Done !");
|
res.send("✅ Download Done !");
|
||||||
|
|||||||
Reference in New Issue
Block a user