Update index.js
Browse files139 unmodified lines1401411421431441451461431441451461479 unmodified lines157158159160161139 unmodified lines const id = match[1]; const query = match[2] || ''; // Jika tidak ada query, gunakan string kosong
let fileURL = `https://mega.nz/file/${id}`; if (query) { fileURL += `#${query}`; } // If there's a query, add a hash symbol to the URL const fileURL = query ? `https://mega.nz/file/${id}#${query}` : `https://mega.nz/file/${id}`;
const file = File.fromURL(fileURL); await file.loadAttributes();9 unmodified lines res.json({ message: error.message }); }})
.listen(7860, () => console.log('App running on port 7860'));index.js+3-4