frontPanel/src/api/contactForm.ts

17 lines
414 B
TypeScript
Raw Normal View History

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