nest-project/src/auth/auth.module.ts

14 lines
439 B
TypeScript
Raw Normal View History

2023-02-16 01:18:55 +08:00
import { Module } from '@nestjs/common'
import { AuthService } from './auth.service'
import { AuthController } from './auth.controller'
import { UsersModule } from 'src/users/users.module'
import { JwtService } from '@nestjs/jwt'
2023-02-16 15:43:38 +08:00
import { JwtStrategy } from './strategies/jwt.strategy'
2023-02-16 01:18:55 +08:00
@Module({
controllers: [AuthController],
2023-02-16 12:09:48 +08:00
providers: [AuthService, JwtService, JwtStrategy],
2023-02-16 01:18:55 +08:00
imports: [UsersModule],
})
export class AuthModule {}