diff --git a/backend/src/main/java/com/edufocus/edufocus/lecture/controller/LectureController.java b/backend/src/main/java/com/edufocus/edufocus/lecture/controller/LectureController.java index 6e04639..90c9416 100644 --- a/backend/src/main/java/com/edufocus/edufocus/lecture/controller/LectureController.java +++ b/backend/src/main/java/com/edufocus/edufocus/lecture/controller/LectureController.java @@ -93,4 +93,9 @@ public class LectureController { return new ResponseEntity<>(myLectures, HttpStatus.OK); } + + @GetMapping("/isLive/{lectureId}") + public ResponseEntity checkIsLive(@PathVariable long lectureId) { + return new ResponseEntity<>(lectureService.getState(lectureId), HttpStatus.OK); + } }