import { join } from 'path';
import { Module } from '@nestjs/common';
import { ServeStaticModule } from '@nestjs/serve-static';
import { LoginModule } from './login/login.module';
import { SalaChatModule } from './sala-chat/sala-chat.module';
import { BatallaModule } from './batalla/batalla.module';

@Module({
  imports: [
    ServeStaticModule.forRoot({
      rootPath: join(__dirname, '..', 'public'),
    }),
    LoginModule,
    SalaChatModule,
    BatallaModule,
  ],
  controllers: [],
  providers: []
})
export class AppModule {}
