feat: Adds the ability to delete a portal (#5305)

This commit is contained in:
Sivin Varghese
2022-09-01 13:27:08 +05:30
committed by GitHub
parent 6e945dd61e
commit f4fc53b425
19 changed files with 158 additions and 48 deletions

View File

@@ -9,6 +9,10 @@ class PortalsAPI extends ApiClient {
updatePortal({ portalSlug, params }) {
return axios.patch(`${this.url}/${portalSlug}`, params);
}
deletePortal(portalSlug) {
return axios.delete(`${this.url}/${portalSlug}`);
}
}
export default PortalsAPI;