Class: WebModule

WebModule

Web application module class.


new WebModule(server, name, route, appPath [, options])

Parameters:
Name Type Argument Description
server WebServer
name string

The name of the app module.

route string

The base route of the app module.

appPath string

The path to load the app's module files

options object <optional>

The app module's extra options defined in its parent's configuration.

Properties:
Name Type Argument Default Description
options.logWithAppName bool <optional>
false

Flag to include app name in log message.

Source:
WebModule.js

Extends

  • Routable(LibModule)

Members


route :string

Mounting route.

Type:
  • string
Source:
WebModule.js

ß

Require a module from the source path of an app module

Source:
WebModule.js