feat : onlinestate 체크 컨트롤러 추가

This commit is contained in:
yulmam 2024-08-07 09:09:40 +09:00
parent a4b3bab290
commit 747af409fa

View File

@ -93,4 +93,9 @@ public class LectureController {
return new ResponseEntity<>(myLectures, HttpStatus.OK);
}
@GetMapping("/isLive/{lectureId}")
public ResponseEntity<Boolean> checkIsLive(@PathVariable long lectureId) {
return new ResponseEntity<>(lectureService.getState(lectureId), HttpStatus.OK);
}
}