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