feat: add feedback API client

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
chihlasm
2026-02-18 17:58:05 -05:00
parent 8b05afaf8f
commit 47c2ee42c6
2 changed files with 22 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
import { apiClient } from './client'
export interface FeedbackSubmission {
email: string
feedback_type: string
message: string
}
export interface FeedbackResponse {
success: boolean
message: string
}
export const feedbackApi = {
submit: async (data: FeedbackSubmission): Promise<FeedbackResponse> => {
const { data: response } = await apiClient.post('/feedback', data)
return response
},
}
export default feedbackApi