import { Module } from '@nestjs/common'; import { AppController } from './app.controller'; import { AppService } from './app.service'; import { DatabaseModule } from './core/database/database.module'; import { ConfigModule } from '@nestjs/config'; import { UsersModule } from './modules/users/users.module'; import { UsersController } from './modules/users/users.controller'; import { ProductsModule } from './modules/products/products.module'; import { AuthModule } from './modules/auth/auth.module'; @Module({ imports: [ DatabaseModule, ConfigModule.forRoot({ isGlobal: true }), UsersModule, ProductsModule, AuthModule, ], controllers: [AppController, UsersController], providers: [AppService], }) export class AppModule {}