misc_pterodactyl-panel/resources/scripts/api/server/deleteServerDatabase.ts

10 lines
293 B
TypeScript
Raw Normal View History

2019-07-17 05:15:14 +00:00
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);
});
};