Add support for client-side server reinstallation

This commit is contained in:
Dane Everitt 2020-04-03 14:43:24 -07:00
parent 86de7372a8
commit 85e3945cd7
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
7 changed files with 169 additions and 47 deletions

View file

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