import express from 'express';
import jwt from 'jsonwebtoken';

const router = express.Router(); // eslint-disable-line new-cap

router.post('/token', (req, res) => {
  const authentication = {
    authenticationProvider: 'github',
    authenticationId: '4321'
  };

  const token = jwt.sign(authentication, process.env.CSBLOGS_JWT_SECRET);

  res.json({
    token
  });
});

import express from 'express';
import jwt from 'jsonwebtoken';

const router = express.Router(); // eslint-disable-line new-cap

router.post('/', (req, res) => {
  const authentication = {
    authenticationProvider: 'github',
    authenticationId: '4321'
  };

  const token = jwt.sign(authentication, process.env.CSBLOGS_JWT_SECRET);

  res.json({
    token
  });
});

export default router;

Fix token/ url and remember to actually export the router...
Fix token/ url and remember to actually export the router...
