frontPanel/src/api/contactForm.ts

18 lines
348 B
TypeScript
Raw Normal View History

import axios from "axios";
const apiUrl = "https://admin.pena.digital/feedback";
export function sendContactFormRequest(body: {
contact: string;
whoami: string;
}) {
return axios(apiUrl + "/callme", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
data: body,
});
}