ilhamdev commited on
Commit
9e38e29
·
verified ·
1 Parent(s): 2df27c8

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -1
index.js CHANGED
@@ -142,7 +142,7 @@ app.use((req, res, next) => {
142
  next();
143
  });
144
 
145
- app.get('/q', async (req,res) => {
146
  const { q } = req.body;
147
  if (!q) {
148
  return res.status(400).json({ error: "Content is required" });
 
142
  next();
143
  });
144
 
145
+ app.get('/api/q', async (req,res) => {
146
  const { q } = req.body;
147
  if (!q) {
148
  return res.status(400).json({ error: "Content is required" });