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

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

  onModuleInit() {
    this.moduleRegistry.registerModule({
      key: 'guest',
      name: 'Invitados',
      description: 'Gestión de invitados, RSVP y asignación de mesas.',
      routePrefix: '/guest',
    });
  }
}
