feat: Add the ability to delete/archive articles (#5319)
This commit is contained in:
@@ -42,6 +42,10 @@ class ArticlesAPI extends PortalsAPI {
|
||||
category_id,
|
||||
});
|
||||
}
|
||||
|
||||
deleteArticle({ articleId, portalSlug }) {
|
||||
return axios.delete(`${this.url}/${portalSlug}/articles/${articleId}`);
|
||||
}
|
||||
}
|
||||
|
||||
export default new ArticlesAPI();
|
||||
|
||||
Reference in New Issue
Block a user