contact endpoint added
This commit was merged in pull request #17.
This commit is contained in:
@@ -26,11 +26,11 @@ const blogBasePath = () => {
|
||||
}
|
||||
|
||||
const siteServerPath = () => {
|
||||
// NEXT_PUBLIC_APP_MAIN_API="https://devapi.mermsemr.com"
|
||||
return 'https://devapi.mermsemr.com';
|
||||
return process.env.NEXT_PUBLIC_APP_MAIN_API;
|
||||
}
|
||||
const postAuxEnd = (path, postData, media = false) => {
|
||||
const basePath = media ? 'https://blogdata.chiefsoft.net' : 'https://blogdata.chiefsoft.net'
|
||||
|
||||
const postAuxEnd = (basePath, path, postData) => {
|
||||
// const basePath = media ? process.env.NEXT_PUBLIC_APP_MAIN_API : process.env.NEXT_PUBLIC_APP_MAIN_API;
|
||||
let newPostData = {}
|
||||
if (!media) {
|
||||
newPostData = {...postData}
|
||||
@@ -75,3 +75,10 @@ export const serMermsWebContact = (reqData) => {
|
||||
}
|
||||
return getAuxEnd(siteServerPath(), '/mermsblogdata/mermsemr', postData)
|
||||
}
|
||||
|
||||
export const sendContactMsg = (reqData) => {
|
||||
let postData = {
|
||||
...reqData
|
||||
}
|
||||
return postAuxEnd(siteServerPath(), '/website/contact', postData)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user