Support deleting existing databases

This commit is contained in:
Dane Everitt 2019-07-16 22:15:14 -07:00
parent 1f763dc155
commit d081f328ab
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
7 changed files with 150 additions and 40 deletions

View file

@ -0,0 +1,9 @@
import http from '@/api/http';
export default (uuid: string, database: string): Promise<void> => {
return new Promise((resolve, reject) => {
http.delete(`/api/client/servers/${uuid}/databases/${database}`)
.then(() => resolve())
.catch(reject);
});
};