bigbluebutton-Github/labs/api/recordings/index.coffee

16 lines
388 B
CoffeeScript
Raw Normal View History

Hapi = require 'hapi'
pack = require './package'
2014-05-02 22:44:45 +08:00
log = require './lib/logger'
recWatcher = require './lib/recording-dir-watcher'
routes = require './lib/routes'
server = Hapi.createServer("0.0.0.0",
parseInt(process.env.PORT, 10) or 4000)
2014-05-01 23:30:09 +08:00
server.start(() ->
log.info(['start'], pack.name + ' - web interface: ' + server.info.uri)
2014-05-01 23:30:09 +08:00
)
server.route(routes.routes)