import { Injectable, OnModuleInit } from '@nestjs/common';
import { ModuleRegistryService } from '../core/services/module-registry.service';

@Injectable()
export class GiftModuleRegistration implements OnModuleInit {
  constructor(private readonly moduleRegistry: ModuleRegistryService) {}

  onModuleInit() {
    this.moduleRegistry.registerModule({
      key: 'gift',
      name: 'Regalos',
      description: 'Gestión de lista de regalos, aportes individuales y grupales.',
      routePrefix: '/gift',
    });
  }
}
