Skip to content

Instantly share code, notes, and snippets.

@johnhamelink
Created February 21, 2012 15:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnhamelink/01534460ecbfc2bb44eb to your computer and use it in GitHub Desktop.
Save johnhamelink/01534460ecbfc2bb44eb to your computer and use it in GitHub Desktop.
var baseController = function(par){
this.flow = par;
};
baseController.prototype.show = function(req,res){
res.json({
title: 'Standard controller [index]',
request: req
});
};
baseController.prototype.create = function(req,res){
res.json({
title: 'Standard controller [index]',
request: req
});
};
baseController.prototype.search = function(req,res){
res.json({
title: 'Standard controller [index]',
request: req
});
};
baseController.prototype.update = function(req,res){
res.json({
title: 'Standard controller [index]',
request: req
});
};
baseController.prototype.remove = function(req,res){
res.json({
title: 'Standard controller [index]',
request: req
});
};
module.exports = baseController;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment