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