Implement routes to start and stop client recording
This commit is contained in:
@@ -27,4 +27,20 @@ router.post('/join', botController.joinServer);
|
||||
*/
|
||||
router.post('/leave', botController.leaveServer);
|
||||
|
||||
/** POST bot start recording
|
||||
* If the bot is in a channel, it will start to record what it hears
|
||||
*
|
||||
* The status of the bot: 200 = starting to record, 202 = already recording, 204 = not in a server, 500 + JSON = encountered error
|
||||
* @returns status
|
||||
*/
|
||||
router.post('/startRecording', botController.startRecording);
|
||||
|
||||
/** POST bot stop recording
|
||||
* If the bot is recording, it will stop recording
|
||||
*
|
||||
* The status of the bot: 200 = will stop the recording, 204 = not currently recording, 500 + JSON = encountered error
|
||||
* @returns status
|
||||
*/
|
||||
router.post('/stopRecording', botController.stopRecording);
|
||||
|
||||
module.exports = router;
|
||||
|
||||
Reference in New Issue
Block a user