Epochtalk Hapi 8.x based API
The HTTP API module is meant to be used as a plugin for Hapi under the Epochtalk system. Check out epochtalk on Github. Note: Requires Hapi 8.x
// as a plugin, use server.register
var server = new Hapi.Server();
// config with db example:
var config = {};
config.db = {
"driver": "pg",
"user": "jianshi",
"password": "",
"host": "localhost",
"database": "epochtalk_dev"
};
var opts = {config: config}; // where db is the database config
server.register({register: require('epochtalk-http-api'), options: opts}, function(err) {
});
In development version, please go to http://localhost:8080/docs.
ISC Copyright (c) 2015, Slickage Studios LLC