bigbluebutton-Github/client/bbb-html5-client/routes/main_router.coffee

24 lines
539 B
CoffeeScript
Raw Normal View History

config = require("../config")
moduleDeps = ["App"]
# The main router that registers the routes that can be accessed by the client.
module.exports = class MainRouter
constructor: () ->
config.modules.wait moduleDeps, =>
@app = config.modules.get("App")
@_registerRoutes()
_registerRoutes: () ->
@app.get "/", @_index
# Base route to render the HTML5 client.
#
# This method is registered as a route on express.
#
# @internal
_index: (req, res) =>
res.render "index",
title: config.appName