mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-20 22:49:18 +00:00
setup router + tidy up
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import express from 'express';
|
||||
export const router = express.Router();
|
||||
|
||||
// create route between controller and '/ontime/download' endpoint
|
||||
router.get('/download', eventsDownload);
|
||||
import { dbDownload, dbUpload } from '../controllers/ontimeController.js';
|
||||
|
||||
// create route between controller and '/ontime/db' endpoint
|
||||
router.get('/db', dbDownload);
|
||||
|
||||
Reference in New Issue
Block a user