-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuser.module.ts
More file actions
23 lines (22 loc) · 908 Bytes
/
user.module.ts
File metadata and controls
23 lines (22 loc) · 908 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { 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 { HttpModule } from '@nestjs/axios';
import { JwtModule } from '@nestjs/jwt';
import { KakaoauthService } from 'src/kakaoauth/kakaoauth.service';
import { MbtiService } from 'src/mbti/mbti.service';
import { CharacterService } from 'src/character/character.service';
import { Character } from 'src/character/entities/character.entity';
@Module({
imports: [
JwtModule.register({
secret: "test",
}),
TypeOrmModule.forFeature([User, Character]),
HttpModule.register({ timeout: 5000, maxRedirects: 5 })],
controllers: [UserController],
providers: [UserService, KakaoauthService, MbtiService, CharacterService]
})
export class UserModule { }