Module: Feature_MiddlewareFactory

Enable middleware factory

Source:
appFeatures/middlewareFactory.js

Example

"middlewareFactory": {
      //new middleware name
      "listOfMiddleware": {
          "middleware1": { // options
              ...
          },
          "middleware2": { // options
              ...
          }
      },
       "altListOfMiddleware": [
          {
              "name": "middleware1",
              "options": { ... } 
          },
          [ "middleware2", { ... } ],
          "middleware3"
      ]
  },

Members


<static> type :string

This feature is loaded at init stage

Type:
  • string
Source:
appFeatures/middlewareFactory.js

Methods


<static> load_(app, factories)

Load the feature

Parameters:
Name Type Description
app App

The app module object

factories object

Object factories

Source:
appFeatures/middlewareFactory.js
Returns:
Type
Promise.<*>