let express = require('express');
let router = express.Router();

/* GET Project */
router.get('/', function (req, res) {
  res.render('graph', {
    title: 'Jama Software Capstone',
    subtitle: 'Project',
    projectId: req.query.projectId,
    rootId: (req.query.rootId ? req.query.rootId : 'null'),
    typeId: (req.query.typeId ? req.query.typeId : 'null')
  });
});

module.exports = router;

let express = require('express');
let router = express.Router();

/* GET Project */
router.get('/', function (req, res) {
  res.render('graph', {
    title: 'Jama Software Capstone',
    subtitle: 'Project',
    projectId: req.query.id,
    rootId: (req.query.rootId ? req.query.rootId : 'null'),
    typeId: (req.query.typeId ? req.query.typeId : 'null')
  });
});

module.exports = router;

Fix project id query param
Fix project id query param
