Skip to content

Commit

Permalink
Merge pull request #3 from js-factory/v0.1.1
Browse files Browse the repository at this point in the history
UPDATE: Config Function not required already exists in ironhead
  • Loading branch information
parveen1112 authored Mar 30, 2019
2 parents ec46515 + 146f70c commit 20bf4e5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions lib/middleware/method.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@ module.exports = route => function attachConfig(req, res, next) {
req.setProps = (key, value) => {
req.localConfig[key] = value;
};
req.getConfig = function (key) {
if (key) {
return _.get(_.get(req, 'app.config'), key);
}
return _.get(req, 'app.config');
};
req.routeExist = true;

debug(route);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@js-factory/router",
"version": "0.0.1",
"version": "0.1.1",
"description": "A routing module with functional programming",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 20bf4e5

Please sign in to comment.