From 04cb39b5909f37496d67d9b2f5539729d50ae4d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EB=AF=B8=EB=9E=98?= Date: Mon, 23 Sep 2024 13:42:47 +0900 Subject: [PATCH] feature :: add /today/participants api --- .../dnd/spaced/domain/quiz/presentation/QuizController.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/com/dnd/spaced/domain/quiz/presentation/QuizController.java b/src/main/java/com/dnd/spaced/domain/quiz/presentation/QuizController.java index 42a7cac..05e2d3a 100644 --- a/src/main/java/com/dnd/spaced/domain/quiz/presentation/QuizController.java +++ b/src/main/java/com/dnd/spaced/domain/quiz/presentation/QuizController.java @@ -47,4 +47,10 @@ public ResponseEntity> submitQuiz(@PathVariable Long id, List results = quizService.submitAnswers(id, requestDto); return ResponseEntity.ok(results); } + + @GetMapping("/today/participants") + public ResponseEntity getParticipantsCountToday() { + long participantsCount = quizService.getParticipantsCountToday(); + return ResponseEntity.ok(participantsCount); + } }