Update index.js
Browse files460 unmodified lines46146246346446546646746846947047138 unmodified lines510511512508513514515516283 unmodified lines800801802798799803804805806807808809810811812813814815816460 unmodified lines method: "GET", example: `${host}/fb?url=` }, { title: "Google Search", method: "GET", example: `${host}/googleSearch?q=` }, { title: "Instagram Downloader", method: "GET",38 unmodified lines title: "Youtube Search", method: "GET", example: `${host}/ytsearch?q=` } }, ]})})
283 unmodified linesreturn res.json({ message: e.message });}})
.get('/googleSearch', async (req, res) => { try { let q = req.query.q || req.query.query; if (!q) return res.json({ message: 'Input parameter q' }); let get = await (require("google-it"))({"query": q}) return res.json(get) } catch (e) { console.log(e);return res.json({ message: e.message }); }}).get('/mega', async (req, res) => {try { let { url } = req.query;index.js+17-3