var Node        = require('./nodeModel.js'),
    handleError = require('../../util.js').handleError,
    handleQuery = require('../queryHandler.js');

module.exports = {

  createNode : function (req, res, next) {
    var newNode = req.body;
    // Support /nodes and /roadmaps/roadmapID/nodes
    newNode.parentRoadmap = newNode.parentRoadmap || req.params.roadmapID;
    Node(newNode).save()
      .then(function(dbResults){
        res.status(201).json(dbResults);
      })
      .catch(handleError(next));
  },

  getNodeByID : function (req, res, next) {
    var _id = req.params.nodeID;
    Node.findById(_id)
      .then(function(dbResults){
        res.json(dbResults);
      })
      .catch(handleError(next));
  },

  updateNode : function (req, res, next) {
    var _id = req.params.nodeID;
    var updateCommand = req.body;
    Node.findByIdAndUpdate(_id, updateCommand)
      .then(function(dbResults){
        res.json(dbResults);
      })
      .catch(handleError(next));
  },

  deleteNode : function (req, res, next) {

  }

};
@@ -1029,16 +1029,184 @@
 next) %7B%0A
+    var _id = req.params.nodeID;%0A    Node.findByIdAndRemove(_id)%0A      .then(function(dbResults)%7B%0A        res.json(dbResults);%0A      %7D)%0A      .catch(handleError(next));
 %0A  %7D%0A%0A%7D;

Add route handler for DELETE /api/nodes/:nodeID