import { Module } from '@nestjs/common';
import { ClassroomGateway } from './classroom.gateway';
import { ClassroomService } from './classroom.service';
import { AuthModule } from '../auth/auth.module';
import { JwtModule } from '@nestjs/jwt';

@Module({
  imports: [
    AuthModule,
    JwtModule.register({
      secret: process.env.JWT_SECRET || 'your-super-secret-jwt-key-change-this-in-production',
      signOptions: { expiresIn: '7d' },
    }),
  ],
  providers: [ClassroomGateway, ClassroomService],
  exports: [ClassroomService],
})
export class ClassroomModule {}
