import { Module } from '@nestjs/common';

import { AppController } from './app.controller';
import { AppService } from './app.service';
import { database } from './config/database.config';
import { ContentModule } from './modules/content/content.module';
import { DatabaseModule } from './modules/database/database.module';
import { UserModule } from './modules/user/user.module';

@Module({
    imports: [DatabaseModule.forRoot(database()), UserModule, ContentModule],
    controllers: [AppController],
    providers: [AppService],
})
export class AppModule {}
