architect-express-resource

Allows other architect plugins to create resources through sub apps

architect-express-resource

Allows other architect plugins to create resources through sub apps

{
  "packagePath": "./node_modules/architect-express-resource",
  // This can be anything 
  "viewEngine": require('eco')
}
module.exports = function (optionsimportsregister) {
 
  var resource = imports.resource;
 
  var app = resource(require('./pathToResource'), __dirname+'/views');
 
  imports.express.use(options.mount, app);
};
  • Tests