Simplified some things

This commit is contained in:
Ben Elferink
2020-12-23 15:44:35 +02:00
parent 6c90e8dc28
commit 3dff3e6b96
3 changed files with 7 additions and 9 deletions

View File

@@ -1,13 +1,12 @@
import express from 'express';
import getExamples from './../controllers/controller.js'; // import request & response function
const router = express.Router(); // initialize router
/*
1st param = extended path location
2nd param = request & response function
current link: http://localhost:8080/examples
*/
router.get('/examples', getExamples);
router.get('/examples', getExamples); // current path: http://localhost:8080/examples
export default router;