Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 407 Bytes

File metadata and controls

19 lines (12 loc) · 407 Bytes

node-controller-loader

Loops through controllers in a given directory and sets them up for use in your web framework.

Installing it

npm install node-controller-loader --save

Using it

var controllerLoader = require('node-controller-loader');

var app = new ExpressApplicationOrSimilar();

controllerLoader.load(app, __dirname + '/controllers', function(){
    app.createServer();
});