Skip to content

Commit

Permalink
feature :: add /words/count api
Browse files Browse the repository at this point in the history
  • Loading branch information
miraexhoi committed Sep 23, 2024
1 parent 2cc074a commit f253fa2
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ public ResponseEntity<DetailWordInfoResponse> findBy(
return ResponseEntity.ok(WordControllerMapper.to(result));
}

@GetMapping("/count")
public ResponseEntity<Long> getTotalWordCount() {
long totalWordCount = wordService.getTotalWordCount();
return ResponseEntity.ok(totalWordCount);
}

@GetMapping("/candidates")
public ResponseEntity<InputWordCandidateResponse> findCandidateAllBy(String name) {
InputWordCandidateDto result = wordService.findCandidateAllBy(name);
Expand Down

0 comments on commit f253fa2

Please sign in to comment.