Files
pyrodactyl/resources/scripts/api/server/network/deleteServerAllocation.ts
2026-01-13 02:32:59 -08:00

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}`);