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

export async function addServer(data: CreateServerDto): Promise<Server> {
  return apiClient<Server>('/api/v1/inventory/servers', {
    method: 'POST',
    body: data,
  });
}
