import { apiClient } from '@/infrastructure/api/api-client';
import type { UpdateServerDto } from '@/application/dto/server.dto';
import type { Server } from '@/domain/entities/server';

export async function updateServer(id: string, data: UpdateServerDto): Promise<Server> {
  return apiClient<Server>(`/api/v1/inventory/servers/${id}`, {
    method: 'PUT',
    body: data,
  });
}
