rog.log
로그인
rog.log
로그인
NestJs Guard
roglog
·
2021년 4월 2일
팔로우
0
NestJS
app_guard
guard
setmetadata
0
SetMetadata
metadata를 set함
SetMetadata(key, value)
APP_GUARD
nestjs에서 제공하는 constants
gurad를 모든 앱에서 사용하고 싶으면 APP_GUARD를 provide해주면 된다.
Ex)
@
Module
(
{
providers
:
[
{
provide
:
APP_GUARD
,
useClass
:
AuthGuard
,
}
]
}
)
roglog
Full Stack Developer 📚
팔로우
이전 포스트
Typeorm find-options realtion
다음 포스트
Apollo Cache 업데이트
0개의 댓글
댓글 작성