0.0.4 • Published 2 years ago
@xygengcn/koa-api-docs v0.0.4
Koa-api-docs
支持koa-api插件自动生成doc文档
操作
yarn run dev
import Api from '@xygengcn/koa-api';
import path from 'path';
import Doc from '@xygengcn/koa-api-docs';
const api = new Api({
controllerPath: path.join(__dirname, '../node_modules/@xygengcn/koa-api/dist/controller'),
error: {
message: {
notFound: 'hahah'
}
}
});
api.run(Doc({ path: path.join(__dirname, '../docs'), docsify: true }));