Skip to content

Commit

Permalink
fix : PortfolioController mapping 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
yeopyeop-82 committed Feb 15, 2024
1 parent dbd578f commit 0c6e4a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class PortfolioController {
private final PortfolioService portfolioService;

@Operation(summary = "포트폴리오 생성", description = "포트폴리오를 생성하는 API입니다.")
@PostMapping("/")
@PostMapping("")
public ApiResponse createPortfolio(@RequestBody CreatePortfolioDto portfolioDto){
portfolioService.createPortfolio(portfolioDto);
return ApiResponse.SuccessResponse(SuccessStatus.PORTFOLIO_CREATE);
Expand All @@ -40,7 +40,7 @@ public ApiResponse getPortfolioDetails(@PathVariable Long portfolioId) {
}

@Operation(summary = "포트폴리오 수정/삭제", description = "포트폴리오를 수정/삭제하는 API입니다.")
@PatchMapping("/")
@PatchMapping("")
public ApiResponse updatePortfolio(@RequestBody UpdatePortfolioDto portfolioDto){
// TODO: PortfolioImg 추가
portfolioService.updatePortfolio(portfolioDto);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/umc/meme/shop/global/ErrorStatus.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public enum ErrorStatus {
NOT_EXIST_REVIEW(404, "존재하지 않는 리뷰입니다."),
NOT_EXIST_INQUIRY(404, "존재하지 않는 문의입니다."),
SEARCH_NOT_FOUNT(404, "검색 결과가 존재하지 않습니다."),
PAGE_NOT_FOUND(404,"페이지를 찾을 수 없습니다");
PAGE_NOT_FOUND(404, "페이지를 찾을 수 없습니다");


private final int code;
Expand Down

0 comments on commit 0c6e4a1

Please sign in to comment.