mirror of
https://github.com/FoggedLens/deflock.git
synced 2026-07-18 17:57:20 +02:00
Contact Form (#113)
* contact form on frontend * note about reporting cameras via email * cleanup
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user