Chatwoot/app/javascript/widget/api/endPoints.js
Pranav Raj S 16fe912fbd
[Feature] Website live chat (#187)
Co-authored-by: Nithin David Thomas <webofnithin@gmail.com>
Co-authored-by: Sojan Jose <sojan@pepalo.com>
2019-10-29 12:50:54 +05:30

17 lines
303 B
JavaScript
Executable file

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,
};