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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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;