import express from 'express';
import path from 'path';

let router = express.Router();

router.get('/', (req, res) => {
  res.json({
    greeting: 'hello'
  });
});

export default router;

import express from 'express';
import path from 'path';

let router = express.Router();

router.get('/', (req, res) => {
  console.log('woop');
});

export default router;

--- 
+++ 
@@ -4,9 +4,7 @@
 let router = express.Router();
 
 router.get('/', (req, res) => {
-  res.json({
-    greeting: 'hello'
-  });
+  console.log('woop');
 });
 
 export default router;
Use sane defaults for main route
