mirror of
https://github.com/pyrohost/pyrodactyl.git
synced 2026-04-06 04:01:58 +02:00
7 lines
324 B
TypeScript
7 lines
324 B
TypeScript
import http from '@/api/http';
|
|
import { Allocation } from '@/api/server/getServer';
|
|
import { getGlobalDaemonType } from '@/api/server/getServer';
|
|
|
|
export default async (uuid: string, id: number): Promise<Allocation> =>
|
|
await http.delete(`/api/client/servers/${getGlobalDaemonType()}/${uuid}/network/allocations/${id}`);
|