Closed justingosan closed 7 years ago
Figured this out
injection.bindFactory('myAppConfig', function (app, appAccessRouter, express, Crud) {
return {
configure: function () {
appAccessRouter.get('/foo/bar', function (req, res, next) {
// Crud operations here
res.render('my-view');
});
}
}
});
Is there a way to access the Crud object (ideally) or the mongodb connection instance from an injected custom route?
e.g (from the docs)
Thanks!