ilhamdev commited on
Commit
3e388db
·
verified ·
1 Parent(s): 1e3e538

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -1
index.js CHANGED
@@ -539,7 +539,7 @@ app.get('/bing', async (req, res) => {
539
  if (!q) return res.json({ message: 'Input parameter q' });
540
  let data = await bingChat(q)
541
  if (data.length === 0) return res.json({message: 'Terkena Chaptcha BOT!!!'})
542
- return res.json(data)
543
  } catch (e) {
544
  console.log(e);
545
  return res.json({ message: e.message });
 
539
  if (!q) return res.json({ message: 'Input parameter q' });
540
  let data = await bingChat(q)
541
  if (data.length === 0) return res.json({message: 'Terkena Chaptcha BOT!!!'})
542
+ return res.json({result:data})
543
  } catch (e) {
544
  console.log(e);
545
  return res.json({ message: e.message });