bigbluebutton-Github/labs/api/recordings/index.coffee
2014-05-02 19:01:11 +00:00

18 lines
412 B
CoffeeScript
Executable File

hapi = require 'hapi'
log = require './lib/logger'
pack = require './package'
recWatcher = require './lib/recording-dir-watcher'
routes = require './lib/routes'
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)
recWatcher.watch()