loopback-boot/test/fixtures/simple-app
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
..
boot Add jscs style check, fix violations found 2014-11-13 15:54:59 +01:00
config.json Rename `app.json` to `config.json` 2014-06-25 08:18:04 +02:00
datasources.json Initial implementation 2014-05-23 16:50:40 +02:00
middleware.json Load middleware and phases from `middleware.json` 2014-11-19 09:45:04 +01:00
model-config.json Rename `models.json` to `model-config.json` 2014-07-15 11:09:39 +02:00