1.0.0 • Published 6 years ago

polygonal-base-api v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

polygonal-base-api

该模块提供 polygonal app 后端工程的 基础插件。包含:

  • inert:Static file and directory handlers
  • vision:Templates rendering support
  • hapi-swagger:A swagger documentation UI generator plugin for hapi
  • blipp:Displays the routes table at startup
  • good:A logging plugin that supports output to console, file and udp/http endpoints
  • hapi-boom-decorators:Exposes boom errors through the hapi reply interface

使用

src/index.js 中注入插件

import plugins from 'polygonal-base-api';

register: [
  ...
  ...plugins,
],