think/packages/server/src/modules/view.module.ts

14 lines
440 B
TypeScript

import { ViewController } from '@controllers/view.controller';
import { ViewEntity } from '@entities/view.entity';
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { ViewService } from '@services/view.service';
@Module({
imports: [TypeOrmModule.forFeature([ViewEntity])],
providers: [ViewService],
exports: [ViewService],
controllers: [ViewController],
})
export class ViewModule {}