push to sheet

This commit is contained in:
arc-alex
2023-11-19 17:04:14 +01:00
parent a7c9ce876c
commit 543e365f82
5 changed files with 162 additions and 41 deletions
+5 -1
View File
@@ -23,6 +23,7 @@ import {
sheetAuthState,
sheetClientFile,
previewSheet,
pushSheet,
} from '../controllers/ontimeController.js';
import {
@@ -103,4 +104,7 @@ router.get('/sheet-authstatus', sheetAuthState);
router.get('/sheet-authurl', sheetAuthUrl);
// create route between controller and '/ontime/preview-sheet' endpoint
router.post('/sheet-preview', validateSheetPreview, previewSheet);
router.post('/sheet-preview', validateSheetPreview, previewSheet);
// create route between controller and '/ontime/preview-sheet' endpoint
router.post('/sheet-push', pushSheet);