user address
This commit is contained in:
@@ -1,16 +1,18 @@
|
||||
import { Module } from '@nestjs/common';
|
||||
import { UserService } from './user.service';
|
||||
import { AdminUserController } from './controllers/adminUser.controller';
|
||||
import { UsersController } from './controllers/user.controller';
|
||||
import { PublicUserController } from './controllers/public-user.controller';
|
||||
import { MikroOrmModule } from '@mikro-orm/nestjs';
|
||||
import { User } from './entities/user.entity';
|
||||
import { UserAddress } from './entities/user-address.entity';
|
||||
import { JwtModule } from '@nestjs/jwt';
|
||||
import { UserRepository } from './repositories/user.repository';
|
||||
import { RefreshToken } from './entities/refresh-token.entity';
|
||||
|
||||
@Module({
|
||||
providers: [UserService, UserRepository],
|
||||
controllers: [AdminUserController],
|
||||
imports: [MikroOrmModule.forFeature([User, RefreshToken]), JwtModule],
|
||||
controllers: [UsersController, PublicUserController],
|
||||
imports: [MikroOrmModule.forFeature([User, UserAddress, RefreshToken]), JwtModule],
|
||||
exports: [UserService, UserRepository],
|
||||
})
|
||||
export class UserModule {}
|
||||
|
||||
Reference in New Issue
Block a user