express-exorcism
Advanced tools
Comparing version 0.0.9 to 0.1.0
{ | ||
"name": "express-exorcism", | ||
"version": "0.0.9", | ||
"version": "0.1.0", | ||
"description": "Express.js router wrapper for async routes", | ||
@@ -5,0 +5,0 @@ "author": "Andrew G Kuznetsov <cav@cav.ru>", |
@@ -71,4 +71,2 @@ const methods = require('methods').concat('all'); | ||
Router[config.methodGroupName] = {}; | ||
config.methodList | ||
@@ -93,5 +91,5 @@ .map((methodName) => { | ||
// Filling group method | ||
Router[config.methodGroupName][method.name] = method.wrapped; | ||
Router[config.methodGroupName + method.name.charAt(0).toUpperCase() + method.name.slice(1)] = method.wrapped; | ||
}); | ||
return Router; | ||
}; |
9593
134