♻️🩹 backend,oo: fixing instances of controllers, and wip rename from drive -> oo (#525)

This commit is contained in:
Eric Doughty-Papassideris
2024-09-19 15:25:37 +02:00
parent ea18aafde9
commit 5285de4abf
6 changed files with 46 additions and 11 deletions
@@ -10,6 +10,7 @@ export const TwakeDriveBackendCallbackRoutes = {
mount(router: Router) {
const controller = new TwakeDriveBackendCallbackController();
// Why post ? to garantee it is never cached and always ran
router.post('/session/:editing_session_key/check', authMiddleware, controller.checkSessionStatus);
router.post('/session/:editing_session_key/check', authMiddleware, controller.checkSessionStatus.bind(controller));
router.post('/session/:editing_session_key/title', authMiddleware, controller.updateSessionFilename.bind(controller));
},
};