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());
|
recordingRouter.use(bodyParser.json());
|
||||||
|
|
||||||
// Recording Routes
|
// Recording Routes
|
||||||
recordingRouter.post(
|
|
||||||
'/',
|
|
||||||
withRecordingEnabled,
|
|
||||||
withAuth(participantTokenValidator),
|
|
||||||
withCorrectPermissions,
|
|
||||||
withValidStartRecordingRequest,
|
|
||||||
recordingCtrl.startRecording
|
|
||||||
);
|
|
||||||
recordingRouter.put(
|
|
||||||
'/:recordingId',
|
|
||||||
withRecordingEnabled,
|
|
||||||
withAuth(participantTokenValidator),
|
|
||||||
withCorrectPermissions,
|
|
||||||
withValidRecordingId,
|
|
||||||
recordingCtrl.stopRecording
|
|
||||||
);
|
|
||||||
recordingRouter.delete(
|
recordingRouter.delete(
|
||||||
'/:recordingId',
|
'/:recordingId',
|
||||||
withAuth(apiKeyValidator, tokenAndRoleValidator(UserRole.ADMIN)),
|
withAuth(apiKeyValidator, tokenAndRoleValidator(UserRole.ADMIN)),
|
||||||
@ -73,9 +57,21 @@ export const internalRecordingRouter = Router();
|
|||||||
internalRecordingRouter.use(bodyParser.urlencoded({ extended: true }));
|
internalRecordingRouter.use(bodyParser.urlencoded({ extended: true }));
|
||||||
internalRecordingRouter.use(bodyParser.json());
|
internalRecordingRouter.use(bodyParser.json());
|
||||||
|
|
||||||
internalRecordingRouter.get(
|
// TODO: Check permissions middlewares
|
||||||
'/:recordingId/content',
|
internalRecordingRouter.post(
|
||||||
withAuth(tokenAndRoleValidator(UserRole.ADMIN)),
|
'/',
|
||||||
withValidRecordingId,
|
withRecordingEnabled,
|
||||||
recordingCtrl.getRecordingContent
|
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