mirror of
https://github.com/docmost/docmost.git
synced 2025-11-15 12:01:10 +10:00
switch to nx monorepo
This commit is contained in:
20
apps/server/src/core/user/user.module.ts
Normal file
20
apps/server/src/core/user/user.module.ts
Normal file
@ -0,0 +1,20 @@
|
||||
import { forwardRef, Module } from '@nestjs/common';
|
||||
import { UserService } from './user.service';
|
||||
import { UserController } from './user.controller';
|
||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||
import { User } from './entities/user.entity';
|
||||
import { UserRepository } from './repositories/user.repository';
|
||||
import { AuthModule } from '../auth/auth.module';
|
||||
import { WorkspaceModule } from '../workspace/workspace.module';
|
||||
|
||||
@Module({
|
||||
imports: [
|
||||
TypeOrmModule.forFeature([User]),
|
||||
forwardRef(() => AuthModule),
|
||||
WorkspaceModule,
|
||||
],
|
||||
controllers: [UserController],
|
||||
providers: [UserService, UserRepository],
|
||||
exports: [UserService, UserRepository],
|
||||
})
|
||||
export class UserModule {}
|
||||
Reference in New Issue
Block a user