import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { ServeStaticModule } from '@nestjs/serve-static';
import { join } from 'path';
import { PrismaService } from './services/prisma.service';
import { AppGetaway } from './app.getaway';

@Module({
  imports: [
    ServeStaticModule.forRoot(
      {
        rootPath: join(__dirname, 'assets/client'),
        renderPath: '/'
      },
      {
        rootPath: join(__dirname, 'assets/uploads'),
        serveRoot: '/uploads',
      }),
  ],
  controllers: [AppController],
  providers: [PrismaService, AppGetaway],
})
export class AppModule { }
