nest-autocrud/src/app.module.ts

18 lines
471 B
TypeScript
Raw Normal View History

2024-10-28 17:49:10 +00:00
import { PrismaModule } from '@autocrud/prisma';
2024-10-26 08:35:59 +00:00
import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
2024-10-28 17:49:10 +00:00
import { AppListProcess } from './processes/list.process';
2024-10-26 17:15:22 +00:00
2024-10-26 08:35:59 +00:00
@Module({
2024-10-28 17:49:10 +00:00
imports: [
PrismaModule.forRoot({
delegate: (prisma) => prisma.user,
processList: AppListProcess,
}),
],
2024-10-26 08:35:59 +00:00
controllers: [AppController],
2024-10-28 17:49:10 +00:00
providers: [AppService],
2024-10-26 08:35:59 +00:00
})
export class AppModule {}