folder restructure

This commit is contained in:
cv
2021-05-28 13:16:34 +02:00
parent 1491fbbb97
commit aa53f2c9cf
18 changed files with 17 additions and 71 deletions
+11
View File
@@ -0,0 +1,11 @@
import express from 'express';
import uploadJson from '../utils/upload.js';
export const router = express.Router();
import { dbDownload, dbUpload } from '../controllers/ontimeController.js';
// create route between controller and '/ontime/db' endpoint
router.get('/db', dbDownload);
// create route between controller and '/ontime/db' endpoint
router.post('/db', uploadJson, dbUpload);