Skip to content

Commit

Permalink
🚑 Remove rate limit for image route
Browse files Browse the repository at this point in the history
  • Loading branch information
Xen0Xys committed Jun 11, 2024
1 parent 02b04c2 commit 88074ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/webtoon/image/image.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {ApiResponse, ApiTags} from "@nestjs/swagger";
import {WebtoonDatabaseService} from "../webtoon/webtoon-database.service";
import {HttpStatusCode} from "axios";
import {ImageSumDto} from "./models/dto/image-sum.dto";
import {SkipThrottle} from "@nestjs/throttler";


@Controller("image")
Expand All @@ -18,6 +19,7 @@ export class ImageController{
@ApiResponse({status: HttpStatusCode.Ok, description: "Get image"})
@ApiResponse({status: HttpStatusCode.NotFound, description: "Not found"})
@ApiResponse({status: HttpStatusCode.BadRequest, description: "Invalid sha256 sum"})
@SkipThrottle()
getImage(@Param() imageSumDto: ImageSumDto){
const regex = new RegExp("^[a-f0-9]{64}$");
if(!regex.test(imageSumDto.sum))
Expand Down

0 comments on commit 88074ae

Please sign in to comment.