new FeedbackService()
Service for sending and retrieving user feedback.
Methods
getAll() → {Promise.<Array>}
Get all feedback entries.
Returns:
Array of feedback objects
- Type:
- Promise.<Array>
sendFeedback(stars, text) → {Promise.<Object>}
Send user feedback with a star rating and text.
Parameters:
| Name | Type | Description |
|---|---|---|
stars | number | Number of stars (rating) |
text | string | Feedback text |
Returns:
Response data
- Type:
- Promise.<Object>