KKKK
This commit is contained in:
parent
d2353f9b5b
commit
1bc18fbbaf
5
index.js
5
index.js
@ -71,9 +71,8 @@ app.post('/sendText', async (req, res) => {
|
|||||||
app.post('/sendButtons', async (req, res) => {
|
app.post('/sendButtons', async (req, res) => {
|
||||||
const { phone } = req.body;
|
const { phone } = req.body;
|
||||||
|
|
||||||
if (!client || !isConnected) {
|
if (!sock || !isConnected) return res.status(400).json({ error: 'Non connecté' });
|
||||||
return res.status(400).json({ error: 'Non connecté' });
|
|
||||||
}
|
|
||||||
|
|
||||||
const BASE_URL = process.env.BASE_URL || 'https://wa.canguidev.fr';
|
const BASE_URL = process.env.BASE_URL || 'https://wa.canguidev.fr';
|
||||||
const imageUrl = `${BASE_URL}/static/logo-merlo-cs-FR.jpg`;
|
const imageUrl = `${BASE_URL}/static/logo-merlo-cs-FR.jpg`;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user