Reaperxxxx commited on
Commit
e0be89e
·
verified ·
1 Parent(s): 39e1aab

Update server.js

Browse files
Files changed (1) hide show
  1. server.js +2 -2
server.js CHANGED
@@ -41,8 +41,8 @@ app.get("/api/amount", authenticate, (req, res) => {
41
  data[chatid].push(newEntry);
42
  writeData(data);
43
 
44
- // Call /api/new internally
45
- res.redirect(`/api/new?chatid=${chatid}&apikey=${req.query.apikey}`);
46
  });
47
 
48
  // /api/new?chatid=123&apikey=yourkey
 
41
  data[chatid].push(newEntry);
42
  writeData(data);
43
 
44
+ // Respond with transaction status
45
+ res.json({ message: "Transaction on the way" });
46
  });
47
 
48
  // /api/new?chatid=123&apikey=yourkey