From 747af409fa0cc715e0b7b4a1f5be421165d32297 Mon Sep 17 00:00:00 2001 From: yulmam <70622601+yulmam@users.noreply.github.com> Date: Wed, 7 Aug 2024 09:09:40 +0900 Subject: [PATCH] =?UTF-8?q?feat=20:=20onlinestate=20=EC=B2=B4=ED=81=AC=20?= =?UTF-8?q?=EC=BB=A8=ED=8A=B8=EB=A1=A4=EB=9F=AC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../edufocus/lecture/controller/LectureController.java | 5 +++++ 1 file changed, 5 insertions(+) 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); + } }