epochtalk-http-api

1.0.10 • Public • Published

Epochtalk HTTP API Circle CI

Epochtalk Hapi 8.x based API

Usage

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) {
});

API Documentation

In development version, please go to http://localhost:8080/docs.

License

ISC Copyright (c) 2015, Slickage Studios LLC

Readme

Keywords

Package Sidebar

Install

npm i epochtalk-http-api

Weekly Downloads

0

Version

1.0.10

License

ISC

Last publish

Collaborators

  • wangbus