Update index.js
Browse files460 unmodified lines46146246346446546638 unmodified lines505506507508509510511283 unmodified lines795796797798799800801802460 unmodified linesmethod: "GET",example: `${host}/fb?url=`},{title: "Instagram Downloader",method: "GET",38 unmodified linestitle: "Youtube Search",method: "GET",example: `${host}/ytsearch?q=`}]})})283 unmodified linesreturn res.json({ message: e.message });}}).get('/mega', async (req, res) => {try {let { url } = req.query;460 unmodified lines46146246346446546646746846947047138 unmodified lines510511512513514515516283 unmodified lines800801802803804805806807808809810811812813814815816460 unmodified linesmethod: "GET",example: `${host}/fb?url=`},{title: "Google Search",method: "GET",example: `${host}/googleSearch?q=`},{title: "Instagram Downloader",method: "GET",38 unmodified linestitle: "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