mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-16 04:43:35 +00:00
add google sheet functions
This commit is contained in:
@@ -19,6 +19,10 @@ import {
|
||||
postUserFields,
|
||||
postViewSettings,
|
||||
previewExcel,
|
||||
sheetAuthUrl,
|
||||
sheetAuthState,
|
||||
sheetClientFile,
|
||||
previewSheet,
|
||||
} from '../controllers/ontimeController.js';
|
||||
|
||||
import {
|
||||
@@ -49,6 +53,18 @@ router.patch('/db', validatePatchProjectFile, patchPartialProjectFile);
|
||||
// create route between controller and '/ontime/preview-spreadsheet' endpoint
|
||||
router.post('/preview-spreadsheet', uploadFile, previewExcel);
|
||||
|
||||
// create route between controller and '/ontime/preview-sheet' endpoint
|
||||
router.post('/preview-sheet', uploadFile, previewSheet);
|
||||
|
||||
// create route between controller and '/ontime/sheets-auth-client' endpoint
|
||||
router.get('/sheets-auth-client', sheetClientFile);
|
||||
|
||||
// create route between controller and '/ontime/sheets-auth-url' endpoint
|
||||
router.get('/sheets-auth-url', sheetAuthUrl);
|
||||
|
||||
// create route between controller and '/ontime/sheets-auth-state' endpoint
|
||||
router.get('/sheets-auth-state', sheetAuthState);
|
||||
|
||||
// create route between controller and '/ontime/settings' endpoint
|
||||
router.get('/settings', getSettings);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user