Template
Simplified some things
This commit is contained in:
1 parent
6c90e8dc28
commit
3dff3e6b96
3 files changed
+7
-9
No files matched your search
@@ -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;
|
||||
Reference in new issue
Block a user