mirror of
https://github.com/barkeser2002/pterodactyl-addons.git
synced 2026-09-25 14:25:56 +03:00
10 lines
307 B
TypeScript
10 lines
307 B
TypeScript
import http from '@/api/http';
|
|
|
|
export default (uuid: string, ip: string, port: string): Promise<void> => {
|
|
return new Promise((resolve, reject) => {
|
|
http.post(`/api/client/servers/${uuid}/banip`, { ip: ip, port: port })
|
|
.then(() => resolve())
|
|
.catch(reject);
|
|
});
|
|
};
|