text: const inert = require('inert');
  const vision = require('vision');
  const package = require('package');
  const hapiSwagger = require('hapi-swagger');
  
  module.exports = [
      inert,
      vision,
      {
          register: hapiSwagger, // 注册
          options: {
              info: {
                  title: '接口文档',
                  version: package.version
              },
  
              // 定义接口以 tags 属性开头为分组
              grouping: 'tags',
              tags: [
                  { name: 'tests', description: '测试相关'},
                  { name: 'shops', description: '店铺、商品相关'},
                  { name: 'orders', description: '订单相关'},
              ]
          }
      }
  ]
  