2019-12-09 22:03:10 -08:00
|
|
|
import http from '@/api/http';
|
|
|
|
|
2022-10-31 17:20:53 +01:00
|
|
|
export default (uuid: string, name: string, description?: string): Promise<void> => {
|
2019-12-09 22:03:10 -08:00
|
|
|
return new Promise((resolve, reject) => {
|
2022-10-31 17:20:53 +01:00
|
|
|
http.post(`/api/client/servers/${uuid}/settings/rename`, { name, description })
|
2019-12-09 22:03:10 -08:00
|
|
|
.then(() => resolve())
|
|
|
|
.catch(reject);
|
|
|
|
});
|
|
|
|
};
|