Skip to content

Commit

Permalink
[REFACTOR] KeywordController 내의 ResponseEntity 리턴 형태 통일
Browse files Browse the repository at this point in the history
  • Loading branch information
rinarina0429 committed May 19, 2024
1 parent 49cd6e0 commit 079513e
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package org.websoso.WSSServer.controller;

import static org.springframework.http.HttpStatus.OK;

import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
Expand All @@ -19,6 +21,8 @@ public class KeywordController {
@GetMapping
public ResponseEntity<KeywordByCategoryGetResponse> searchKeywordByCategory(
@RequestParam(required = false) String query) {
return ResponseEntity.ok(keywordService.searchKeywordByCategory(query));
return ResponseEntity
.status(OK)
.body(keywordService.searchKeywordByCategory(query));
}
}

0 comments on commit 079513e

Please sign in to comment.