mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 19:48:08 +00:00
feat: Adds the ability to delete a segment (#3836)
* feat: Adds the ability to delete a segment * Minor fixes * Small changes
This commit is contained in:
@@ -9,6 +9,10 @@ class CustomViewsAPI extends ApiClient {
|
||||
getCustomViewsByFilterType(type) {
|
||||
return axios.get(`${this.url}?filter_type=${type}`);
|
||||
}
|
||||
|
||||
deleteCustomViews(id, type) {
|
||||
return axios.delete(`${this.url}/${id}?filter_type=${type}`);
|
||||
}
|
||||
}
|
||||
|
||||
export default new CustomViewsAPI();
|
||||
|
||||
Reference in New Issue
Block a user