loopback-boot/test
Miroslav Bajtoš 1114bc9227 Load middleware and phases from `middleware.json`
Sample JSON:

        {
          "routes:before": {
            "morgan": {
              "params": ["dev"]
            }
          },
          "routes": {
            "loopback/server/middleware/rest": {
            }
          },
          "subapps": {
            "./adminer": {
            },
          }
        }

The JSON file can be customized using the usual conventions:
  - middleware.local.{js|json}
  - middleware.{env}.{js|json}

It is also possible to mount the same middleware in the same phase
multiple times with different configuration.

Example config:

    {
      "auth": {
        "oauth2": [
          {
            "params": "first"
          },
          {
            "params": "second"
          }
        ]
      },
    });
2014-11-19 09:45:04 +01:00
..
fixtures Load middleware and phases from `middleware.json` 2014-11-19 09:45:04 +01:00
helpers Load middleware and phases from `middleware.json` 2014-11-19 09:45:04 +01:00
browser.test.js Add jscs style check, fix violations found 2014-11-13 15:54:59 +01:00
compiler.test.js Load middleware and phases from `middleware.json` 2014-11-19 09:45:04 +01:00
executor.test.js Load middleware and phases from `middleware.json` 2014-11-19 09:45:04 +01:00