Contact Form (#113)

* contact form on frontend

* note about reporting cameras via email

* cleanup
This commit is contained in:
Will Freeman
2026-04-21 12:16:18 -06:00
committed by GitHub
parent 7c27235400
commit 5316246c0e
5 changed files with 265 additions and 145 deletions
+14
View File
@@ -87,3 +87,17 @@ export const geocodeQuery = async (query: string) => {
const result = (await apiService.get(`/geocode?query=${encodedQuery}`)).data;
return result;
}
export interface ContactMessagePayload {
name: string;
email: string;
topic: string;
subject: string;
message: string;
turnstileToken: string;
}
export const postContactMessage = async (payload: ContactMessagePayload) => {
const response = await apiService.post("/contact/message", payload);
return response.data;
}