mirror of
https://github.com/docmost/docmost.git
synced 2025-11-15 00:31:13 +10:00
18 lines
669 B
TypeScript
18 lines
669 B
TypeScript
import { Global, 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';
|
|
|
|
@Global()
|
|
@Module({
|
|
imports: [TypeOrmModule.forFeature([User]), AuthModule, WorkspaceModule],
|
|
controllers: [UserController],
|
|
providers: [UserService, UserRepository],
|
|
exports: [UserService, UserRepository],
|
|
})
|
|
export class UserModule {}
|