From 0857ae77325e6664bf3c8b9326708c41ed160a1a Mon Sep 17 00:00:00 2001 From: Anand Chowdhary Date: Thu, 29 Oct 2020 23:56:00 +0530 Subject: [PATCH] :recycle: Use auth module-scoped constants --- src/{app.constants.ts => modules/auth/auth.constants.ts} | 0 src/modules/auth/jwt-auth.guard.ts | 2 +- src/modules/auth/public.decorator.ts | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename src/{app.constants.ts => modules/auth/auth.constants.ts} (100%) diff --git a/src/app.constants.ts b/src/modules/auth/auth.constants.ts similarity index 100% rename from src/app.constants.ts rename to src/modules/auth/auth.constants.ts diff --git a/src/modules/auth/jwt-auth.guard.ts b/src/modules/auth/jwt-auth.guard.ts index dccdc99b9..4e204a94d 100644 --- a/src/modules/auth/jwt-auth.guard.ts +++ b/src/modules/auth/jwt-auth.guard.ts @@ -1,7 +1,7 @@ import { ExecutionContext, Injectable } from '@nestjs/common'; import { Reflector } from '@nestjs/core'; import { AuthGuard } from '@nestjs/passport'; -import { STAART_PUBLIC_ENDPOINT } from 'src/app.constants'; +import { STAART_PUBLIC_ENDPOINT } from './auth.constants'; @Injectable() export class JwtAuthGuard extends AuthGuard('jwt') { diff --git a/src/modules/auth/public.decorator.ts b/src/modules/auth/public.decorator.ts index 903aca844..5446e1768 100644 --- a/src/modules/auth/public.decorator.ts +++ b/src/modules/auth/public.decorator.ts @@ -1,4 +1,4 @@ -import { STAART_PUBLIC_ENDPOINT } from 'src/app.constants'; +import { STAART_PUBLIC_ENDPOINT } from './auth.constants'; export function Public() { return (