mirror of
https://github.com/cheveguerra/ws-api-node.git
synced 2026-04-17 19:36:23 +00:00
update
update code
This commit is contained in:
1
api.js
1
api.js
@@ -65,6 +65,7 @@ client.on("message", async (msg) => {
|
||||
client.on("disconnected", () => {
|
||||
console.log("disconnected");
|
||||
});
|
||||
|
||||
client.initialize();
|
||||
|
||||
const chatRoute = require("./components/chatting");
|
||||
|
||||
@@ -29,7 +29,7 @@ router.post('/sendmessage', async (req,res) => {
|
||||
}
|
||||
});
|
||||
|
||||
router.post('/sendimage/:phone', async (req,res) => {
|
||||
router.post('/sendimage/', async (req,res) => {
|
||||
var base64regex = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/;
|
||||
|
||||
let phone = req.body.phone;
|
||||
|
||||
Reference in New Issue
Block a user