This commit is contained in:
2025-08-24 17:25:11 +03:00
parent 9f6fca6dac
commit 7fd2a6e55f
41 changed files with 505 additions and 41 deletions

View File

@@ -3,14 +3,21 @@ 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, 'client'),
}),
ServeStaticModule.forRoot(
{
rootPath: join(__dirname, 'assets/client'),
renderPath: '/'
},
{
rootPath: join(__dirname, 'assets/uploads'),
serveRoot: '/uploads',
}),
],
controllers: [AppController],
providers: [PrismaService],
providers: [PrismaService, AppGetaway],
})
export class AppModule { }