b0950d6880
Co-authored-by: Pranav Raj S <pranavrajs@gmail.com> Co-authored-by: Nithin David Thomas <webofnithin@gmail.com>
12 lines
339 B
JavaScript
Executable file
12 lines
339 B
JavaScript
Executable file
import authEndPoint from 'widget/api/endPoints';
|
|
import { API } from 'widget/helpers/axios';
|
|
|
|
export default {
|
|
update: ({ messageId, email, values }) => {
|
|
const urlData = authEndPoint.updateMessage(messageId);
|
|
return API.patch(urlData.url, {
|
|
contact: { email },
|
|
message: { submitted_values: values },
|
|
});
|
|
},
|
|
};
|