diff --git a/src/main/java/com/dnd/spaced/domain/word/presentation/WordController.java b/src/main/java/com/dnd/spaced/domain/word/presentation/WordController.java index a97d4f8..21eafbe 100644 --- a/src/main/java/com/dnd/spaced/domain/word/presentation/WordController.java +++ b/src/main/java/com/dnd/spaced/domain/word/presentation/WordController.java @@ -58,6 +58,12 @@ public ResponseEntity findBy( return ResponseEntity.ok(WordControllerMapper.to(result)); } + @GetMapping("/count") + public ResponseEntity getTotalWordCount() { + long totalWordCount = wordService.getTotalWordCount(); + return ResponseEntity.ok(totalWordCount); + } + @GetMapping("/candidates") public ResponseEntity findCandidateAllBy(String name) { InputWordCandidateDto result = wordService.findCandidateAllBy(name);