backend: Moved start and stop recording to internal api
This commit is contained in:
parent
713f99acf7
commit
89f70dc928
@ -20,22 +20,6 @@ recordingRouter.use(bodyParser.urlencoded({ extended: true }));
|
||||
recordingRouter.use(bodyParser.json());
|
||||
|
||||
// Recording Routes
|
||||
recordingRouter.post(
|
||||
'/',
|
||||
withRecordingEnabled,
|
||||
withAuth(participantTokenValidator),
|
||||
withCorrectPermissions,
|
||||
withValidStartRecordingRequest,
|
||||
recordingCtrl.startRecording
|
||||
);
|
||||
recordingRouter.put(
|
||||
'/:recordingId',
|
||||
withRecordingEnabled,
|
||||
withAuth(participantTokenValidator),
|
||||
withCorrectPermissions,
|
||||
withValidRecordingId,
|
||||
recordingCtrl.stopRecording
|
||||
);
|
||||
recordingRouter.delete(
|
||||
'/:recordingId',
|
||||
withAuth(apiKeyValidator, tokenAndRoleValidator(UserRole.ADMIN)),
|
||||
@ -73,9 +57,21 @@ export const internalRecordingRouter = Router();
|
||||
internalRecordingRouter.use(bodyParser.urlencoded({ extended: true }));
|
||||
internalRecordingRouter.use(bodyParser.json());
|
||||
|
||||
internalRecordingRouter.get(
|
||||
'/:recordingId/content',
|
||||
withAuth(tokenAndRoleValidator(UserRole.ADMIN)),
|
||||
withValidRecordingId,
|
||||
recordingCtrl.getRecordingContent
|
||||
// TODO: Check permissions middlewares
|
||||
internalRecordingRouter.post(
|
||||
'/',
|
||||
withRecordingEnabled,
|
||||
withAuth(participantTokenValidator),
|
||||
withCorrectPermissions,
|
||||
withValidStartRecordingRequest,
|
||||
recordingCtrl.startRecording
|
||||
);
|
||||
|
||||
internalRecordingRouter.put(
|
||||
'/:recordingId',
|
||||
withRecordingEnabled,
|
||||
withAuth(participantTokenValidator),
|
||||
withCorrectPermissions,
|
||||
withValidRecordingId,
|
||||
recordingCtrl.stopRecording
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user