Skip to content

Instantly share code, notes, and snippets.

Avatar
🍰
is a lie

Dmitry Chirkin josser

🍰
is a lie
View GitHub Profile
View gist:294616a7e1d1d20df5a6
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){