hapi sequelize crud:Hapi插件可自动为CRUD生成RESTful API 源码
八角挤压 自动为您的模型和关联生成RESTful API 该插件取决于 。 npm install -S hapi-sequelize-crud 配置 请注意,定义关联后,您应该注册hapi-sequelize-crud 。 // First, register hapi-sequelize await register ( { register : require ( 'hapi-sequelize' ) , options : { ... } } ) ; // Then, define your associations let db = server . plugins
下载地址
用户评论