Preview Sheet

This commit is contained in:
arc-alex
2023-11-18 20:58:57 +01:00
parent 52a9c85dbc
commit 65efebe180
6 changed files with 150 additions and 37 deletions
+2 -3
View File
@@ -31,6 +31,7 @@ import {
validateOscSubscription,
validatePatchProjectFile,
validateSettings,
validateSheetPreview,
validateUserFields,
viewValidator,
} from '../controllers/ontimeController.validate.js';
@@ -101,7 +102,5 @@ router.get('/sheet-authstatus', sheetAuthState);
// create route between controller and '/ontime/sheet-authstatus' endpoint
router.get('/sheet-authurl', sheetAuthUrl);
router.get('/sheet-authurl', previewSheet);
// create route between controller and '/ontime/preview-sheet' endpoint
router.get('/sheet-preview', previewSheet);
router.post('/sheet-preview', validateSheetPreview, previewSheet);