Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

architect-express-resource

0.0.1 • Public • Published

architect-express-resource

Allows other architect plugins to create resources through sub apps

Config Format

{
  "packagePath": "./node_modules/architect-express-resource",
  // This can be anything
  "viewEngine": require('eco')
}

Usage

module.exports = function (options, imports, register) {
 
  var resource = imports.resource;
 
  var app = resource(require('./pathToResource'), __dirname+'/views');
 
  imports.express.use(options.mount, app);
};

TODO

  • Tests

Keywords

none

install

npm i architect-express-resource

Downloadsweekly downloads

0

version

0.0.1

license

none

last publish

collaborators

  • avatar
Report a vulnerability