18 lines
909 B
TypeScript
18 lines
909 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
import { User } from 'server/entities/user.entity';
|
|
import { SessionsController } from '../controllers/sessions.controller';
|
|
import { UsersController } from 'server/controllers/users.controller';
|
|
import { UsersService } from '../providers/services/users.service';
|
|
import { RefreshTokensService } from '../providers/services/refresh_tokens.service';
|
|
import { RefreshToken } from 'server/entities/refresh_token.entity';
|
|
import { JwtService } from 'server/providers/services/jwt.service';
|
|
import { RefreshTokensController } from 'server/controllers/refresh_tokens.controller';
|
|
|
|
@Module({
|
|
imports: [TypeOrmModule.forFeature([User, RefreshToken])],
|
|
controllers: [SessionsController, UsersController, RefreshTokensController],
|
|
providers: [UsersService, RefreshTokensService, JwtService],
|
|
})
|
|
export class UsersModule {}
|