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

let router = express.Router();

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

export default router;

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

let router = express.Router();

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

export default router;

Use sane defaults for main route