wip
This commit is contained in:
@@ -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 { }
|
||||
|
||||
Reference in New Issue
Block a user