enieber
6/9/2016 - 10:15 PM

manifest.json

{
  "connections": [
    {
      "host": "localhost",
      "port": 8000,
      "routes": {
        "cors": true
      },
      "router": {
        "stripTrailingSlash": true
      }
    }
  ],
  "registrations": [
    {
      "plugin": "hapi-auth-jwt2"
    },
    {
      "plugin": "./auth"
    },
    {
      "plugin":{ 
        "register": "hapi-router",
        "options": {
          "routes": "api/**/route.js"
        }
      }
    },
    {
      "plugin": {
        "register": "good",
        "options": {
          "ops": {
            "interval": 60000
          },
          "reporters": {
            "console": [
              {
                "module": "good-console",
                "args": [
                  {
                    "events": {
                      "response": "*"
                    }
                  }
                ]
              },
              "stdout"
            ]
          }
        }
      }
    }
  ]
}