Created
November 23, 2014 14:28
-
-
Save geobabbler/d1dc7fd047dd2659f8b3 to your computer and use it in GitHub Desktop.
Code snippet 1 for blog post http://blog.geomusings.com/2014/02/18/a-little-deeper-with-node-and-postgis/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// dynamically include routes (Controller) | |
fs.readdirSync('./controllers').forEach(function (file) { | |
if(file.substr(-3) == '.js') { | |
route = require('./controllers/' + file); | |
route.controller(app); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment