import { Module } from '@nestjs/common';
import { UserService } from './user.service';
import { USER_CONTROLLER_PREFIX, UserController } from './user.controller';

import { JWTModule } from '../../services/authentication/jwt/jwt.module';
import { CloudinaryModule } from '../../services/image-management/cloudinary/cloudinary.module';

import { MealsModule } from './resources/meals/meals.module';
import { RouterModule } from '@nestjs/core';
import { GoogleAuthModule } from '../../services/authentication/google-auth/google-auth.module';

@Module({
  imports: [
    JWTModule,
    CloudinaryModule,
    GoogleAuthModule,
    MealsModule,
    RouterModule.register([
      {
        path: USER_CONTROLLER_PREFIX,
        module: MealsModule,
      },
    ]),
  ],
  controllers: [UserController],
  providers: [UserService],
})
export class UserModule {}
