Skip to content

Instantly share code, notes, and snippets.

View josser's full-sized avatar
🍰
is a lie

Dmytro Chyrkin josser

🍰
is a lie
View GitHub Profile
var domain = require('domain');
var express = require('express');
var fs = require('fs');
var _ = require('lodash');
module.exports = function(parent, options){
var directory = options.directory || __dirname + '/../controllers';
fs.readdirSync(directory).forEach(function(name){