woocommerce integration, controllers and handlers ready, evolution api simulator ready
This commit is contained in:
@@ -14,11 +14,11 @@ export const api = {
|
||||
return fetch(u).then(r => r.json());
|
||||
},
|
||||
|
||||
async simSend({ chat_id, from_phone, text }) {
|
||||
return fetch("/sim/send", {
|
||||
async simEvolution(payload) {
|
||||
return fetch("/webhook/evolution", {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify({ chat_id, from_phone, text }),
|
||||
body: JSON.stringify(payload),
|
||||
}).then(r => r.json());
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user