15 lines
574 B
TypeScript
15 lines
574 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { AppController } from './app.controller';
|
|
import { AppService } from './app.service';
|
|
import { ListPrinterController } from './controller/list-printer.controller';
|
|
import { ListPrinterService } from './services/list-printer';
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
import { typeOrmConfig } from './config/typeorm.config';
|
|
|
|
@Module({
|
|
imports: [TypeOrmModule.forRoot(typeOrmConfig)],
|
|
controllers: [AppController, ListPrinterController],
|
|
providers: [AppService, ListPrinterService],
|
|
})
|
|
export class AppModule {}
|