bigbluebutton-Github/labs/api/meetings/index.coffee
Richard Alam 454b37a0df - setup
2014-04-26 19:51:18 -07:00

18 lines
410 B
CoffeeScript
Executable File

Hapi = require("hapi")
pack = require './package'
routes = require './lib/routes'
bunyan = require 'bunyan'
log = bunyan.createLogger({name: 'myapp'});
log.info('hi')
log.warn({lang: 'fr'}, 'au revoir')
server = Hapi.createServer("0.0.0.0", parseInt(process.env.PORT, 10) or 4000)
server.start(() ->
log.info(['start'], pack.name + ' - web interface: ' + server.info.uri);
)
server.route routes.routes