Merge branch 'Be/lecture' into 'backend'

[Back-End] feat : onlinestate 체크 컨트롤러 추가

See merge request s11-webmobile1-sub2/S11P12A701!77
This commit is contained in:
김기창 2024-08-07 09:10:33 +09:00
commit eaa268acf0

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);
}
}