update
This commit is contained in:
26
Frontend/src/features/content/services/contactService.ts
Normal file
26
Frontend/src/features/content/services/contactService.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
import apiClient from '../../../shared/services/apiClient';
|
||||
|
||||
export interface ContactFormData {
|
||||
name: string;
|
||||
email: string;
|
||||
subject: string;
|
||||
message: string;
|
||||
phone?: string;
|
||||
}
|
||||
|
||||
export interface ContactResponse {
|
||||
status: string;
|
||||
message: string;
|
||||
}
|
||||
|
||||
export const submitContactForm = async (
|
||||
formData: ContactFormData
|
||||
): Promise<ContactResponse> => {
|
||||
const response = await apiClient.post('/contact/submit', formData);
|
||||
return response.data;
|
||||
};
|
||||
|
||||
export default {
|
||||
submitContactForm,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user