Skip to content

Commit 4e51355

Browse files
committed
restructure guard
1 parent 077661f commit 4e51355

File tree

6 files changed

+4
-4
lines changed

6 files changed

+4
-4
lines changed

src/apps/auth/auth.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Body, Controller, Get, HttpCode, HttpStatus, Post, Req } from '@nestjs/common';
22
import { Request } from 'express';
3-
import { UseJwtGuard, UseJwtRefreshGuard } from 'src/common/filters/jwt.guard';
3+
import { UseJwtGuard, UseJwtRefreshGuard } from 'src/common/guards/jwt.guard';
44
import { Response } from 'src/common/utils/response.utils';
55
import { AuthService } from './auth.service';
66
import { LoginDTO } from './dto/login.dto';

src/apps/file/file.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Body, Controller, Post, UploadedFile, UseInterceptors } from '@nestjs/common';
22
import { FileInterceptor } from '@nestjs/platform-express';
33
import { Express } from 'express';
4-
import { UseJwtGuard } from 'src/common/filters/jwt.guard';
4+
import { UseJwtGuard } from 'src/common/guards/jwt.guard';
55
import { FileService } from './file.service';
66

77
@Controller('file')

src/apps/user/user.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Body, Controller, Get, HttpCode, HttpStatus, Post, Query, Req } from '@nestjs/common';
22
import { Request } from 'express';
3-
import { UseJwtGuard } from 'src/common/filters/jwt.guard';
3+
import { UseJwtGuard } from 'src/common/guards/jwt.guard';
44
import { Response } from 'src/common/utils';
55
import { UpdateUserDTO } from './update-user.dto';
66
import { UserService } from './user.service';
File renamed without changes.
File renamed without changes.

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { NestFactory } from '@nestjs/core';
22
import { NestExpressApplication } from '@nestjs/platform-express';
33
import { join } from 'path';
4-
import { ApiKeyGuard } from './apps/app.guard';
4+
import { ApiKeyGuard } from './common/filters/app.guard';
55
import { AppModule } from './apps/app.module';
66
import { HttpExceptionFilter } from './common/filters/http-exception.filter';
77
import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger';

0 commit comments

Comments
 (0)