mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 03:57:52 +00:00
[Feature] Website live chat (#187)
Co-authored-by: Nithin David Thomas <webofnithin@gmail.com> Co-authored-by: Sojan Jose <sojan@pepalo.com>
This commit is contained in:
17
app/javascript/widget/api/endPoints.js
Executable file
17
app/javascript/widget/api/endPoints.js
Executable file
@@ -0,0 +1,17 @@
|
||||
const sendMessage = content => ({
|
||||
url: `/api/v1/widget/messages${window.location.search}`,
|
||||
params: {
|
||||
message: {
|
||||
content,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
const getConversation = () => ({
|
||||
url: `/api/v1/widget/messages${window.location.search}`,
|
||||
});
|
||||
|
||||
export default {
|
||||
sendMessage,
|
||||
getConversation,
|
||||
};
|
||||
Reference in New Issue
Block a user