Create a gist now

Instantly share code, notes, and snippets.

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