Add support for client-side server reinstallation
This commit is contained in:
parent
86de7372a8
commit
85e3945cd7
7 changed files with 169 additions and 47 deletions
9
resources/scripts/api/server/reinstallServer.ts
Normal file
9
resources/scripts/api/server/reinstallServer.ts
Normal 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);
|
||||
});
|
||||
}
|
Reference in a new issue