Skip to content

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

License

Notifications You must be signed in to change notification settings

appmechanix/node-controller-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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();
});

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published