setup router + tidy up

This commit is contained in:
cv
2021-05-27 22:56:49 +02:00
parent b61a82627e
commit f887817a68
6 changed files with 36 additions and 23 deletions
+4 -2
View File
@@ -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);