Skip to content

Commit

Permalink
feature :: add /today/participants api
Browse files Browse the repository at this point in the history
  • Loading branch information
miraexhoi committed Sep 23, 2024
1 parent 0e4509a commit 04cb39b
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,10 @@ public ResponseEntity<List<QuizResult>> submitQuiz(@PathVariable Long id,
List<QuizResult> results = quizService.submitAnswers(id, requestDto);
return ResponseEntity.ok(results);
}

@GetMapping("/today/participants")
public ResponseEntity<Long> getParticipantsCountToday() {
long participantsCount = quizService.getParticipantsCountToday();
return ResponseEntity.ok(participantsCount);
}
}

0 comments on commit 04cb39b

Please sign in to comment.