gengojs-default-pack
v1.1.3
Published
The default gengo-pack for gengojs
Downloads
7
Readme
gengo-pack
The default gengo-pack for gengojs
This is the default gengo-pack that contains the following plugins:
- gengojs-default-api
- gengojs-default-backend
- gengojs-default-header
- gengojs-default-localize
- gengojs-default-parser
- gengojs-default-router
Usage
var gengo = require('gengojs');
var pack = require('gengojs-default-pack');
// In Express (also applies for Koa)
var express = require('express');
var app = express();
app.use(gengo({/*options*/, pack())};
// ...
// In Hapi
var Hapi = require('hapi');
var server = Hapi();
server.connection({ port: 3000});
server.register(gengo({/*options*/, pack()), function(error){});
// ...