mirror of https://github.com/sylv/micro.git
17 lines
607 B
TypeScript
17 lines
607 B
TypeScript
import { MikroOrmModule } from "@mikro-orm/nestjs";
|
|
import { Module } from "@nestjs/common";
|
|
import { HostsModule } from "../hosts/hosts.module";
|
|
import { StorageModule } from "../storage/storage.module";
|
|
import { UserModule } from "../user/user.module";
|
|
import { FileController } from "./file.controller";
|
|
import { File } from "./file.entity";
|
|
import { FileService } from "./file.service";
|
|
|
|
@Module({
|
|
imports: [StorageModule, HostsModule, UserModule, MikroOrmModule.forFeature([File])],
|
|
controllers: [FileController],
|
|
providers: [FileService],
|
|
exports: [FileService],
|
|
})
|
|
export class FileModule {}
|