Update server.js
Browse files
server.js
CHANGED
@@ -41,8 +41,8 @@ app.get("/api/amount", authenticate, (req, res) => {
|
|
41 |
data[chatid].push(newEntry);
|
42 |
writeData(data);
|
43 |
|
44 |
-
//
|
45 |
-
res.
|
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
|