import { Module } from '@nestjs/common';
import { ServeStaticModule } from '@nestjs/serve-static';
import { join } from 'path';
import { CoreModule } from './core/core.module';
import { GiftModule } from './gift/gift.module';
import { GuestModule } from './guest/guest.module';
import { TodoModule } from './todo/todo.module';
import { AdminModule } from './admin/admin.module';

@Module({
  imports: [
    ServeStaticModule.forRoot({
      rootPath: join(__dirname, '..', 'public'),
      serveRoot: '/admin',
    }),
    CoreModule,
    GiftModule,
    GuestModule,
    TodoModule,
    AdminModule,
  ],
})
export class AppModule {}
