lib/thingme.js
function createWebservice (opts) {
    var server = new Hapi.Server(opts.host, opts.port, {
        cors: {
            methods: ['GET']
        }
    });
    defineRoutes(server, opts);
    return {
        address: 'http://' + opts.host + ':' + opts.port + '/',
        hapi: server,
        options: opts,
        start: server.start.bind(server)
    };
}
function createWebservice (opts) {
    var server = new Hapi.Server(opts.host, opts.port, {
        cors: {
            methods: ['GET']
        }
    });
    defineRoutes(server, opts);
    return {
        address: 'http://' + opts.host + ':' + opts.port + '/',
        hapi: server,
        options: opts,
        start: server.start.bind(server)
    };
}
function createWebservice ( opts ) { var server = new Hapi . Server ( opts . host , opts . port , { cors : { methods : [ 'GET' ] } } ) ; defineRoutes ( server , opts ) ; return { address : 'http://' + opts . host + ':' + opts . port + '/' , hapi : server , options : opts , start : server . start . bind ( server ) } ; }
Create a webservice
Create a webservice