Say i have this code to separate routes in expressjs:
module.exports = function(express,app,client) { app.get(\'/\', function(req,res,next) {
In the expressjs download package, there is a folder called "mvc". The author provides a good example for a tiny&efficient mvc structure. Going through the code, you will get much inspiration.