diff --git a/lib/aonx.js b/lib/aonx.js index d9c9dd3..3d33c42 100644 --- a/lib/aonx.js +++ b/lib/aonx.js @@ -180,7 +180,7 @@ function _postHandlers() { res.json({app:config.app.title, version:config.app.version}); } }; - exports.apiresource = app.resource('api', api); + global.apiresource = app.resource('api', api); winston.debug(pkgname + " api handler added"); } diff --git a/package.json b/package.json index 6e206d4..b6486c1 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "express" : ">= 2.5.9", "express-resource" : ">= 0.2.4", + "express-messages" : ">= 0.0.2", "mongoose" : ">= 2.6.2" },