Skip to content

Commit

Permalink
fix: change response type
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeongh00 committed Oct 3, 2024
1 parent fdd11d1 commit 2f711cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public ApplicationResponse<String> addIngredientList(@UserResolver User user,
@RequestBody IngredientAddReq addReq) {

cuisineSaveUseCase.saveIngredient(addReq, user);
return ApplicationResponse.ok("식재료 리스트 추가되었습니다.");
return ApplicationResponse.onSuccess("식재료 리스트 추가되었습니다.");
}

// 식재료 삭제하기
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ public class FileController {
public ApplicationResponse<PresignedUrlResponse> getPresignedUrl(
@Parameter(description = "파일 경로의 prefix (이미지의 경우 images 필수)", example = "/images") @RequestParam(name = "prefix", defaultValue = "images") String prefix,
@Parameter(description = "파일 이름", required = true, example = "example.txt") @RequestParam(name = "fileName") String fileName) {
return ApplicationResponse.ok(fileService.getUploadPresignedUrl(prefix, fileName));
return ApplicationResponse.onSuccess(fileService.getUploadPresignedUrl(prefix, fileName));
}
}

0 comments on commit 2f711cd

Please sign in to comment.