frontPanel/src/api/contactForm.ts

20 lines
395 B
TypeScript
Raw Normal View History

import axios from "axios";
2023-12-31 02:53:25 +00:00
const domen =
window.location.hostname === "localhost"
? "squiz.pena.digital"
: window.location.hostname;
export function sendContactFormRequest(body: {
2023-12-31 02:53:25 +00:00
contact: string;
whoami: string;
}) {
2023-12-31 02:53:25 +00:00
return axios(`https://${domen}/feedback/callme`, {
method: "POST",
headers: {
"Content-Type": "application/json",
},
data: body,
});
}