Enable routing web requests to a child app.
- Source:
- serverFeatures/appRouting.js
Example
'appRouting': { '<mounting point>': { name: 'app name', npmModule: false, // whether is a npm module options: { // module options }, settings: { // can override module defined settings }, middlewares: { // can override middlewares } } }
Members
-
<static> type :string
-
This feature is loaded at plugin stage.
Type:
- string
- Source:
- serverFeatures/appRouting.js
Methods
-
<static> load_(server, routes)
-
Load the feature.
Parameters:
Name Type Description server
WebServer The web server module object.
routes
object Routes and configuration.
- Source:
- serverFeatures/appRouting.js
Returns:
- Type
- Promise.<*>