@cmux/base-sdk
v1.2.5
Published
sdk
Downloads
4
Readme
使用
import BaseSDK from 'base-sdk';
const router = new KoaRouter();
router.use(
new BaseSDK(XXX, {
// base host。默认127.0.0.1
host: '127.0.0.1:3001',
// api自定义
api: {
login_douyin_mini_game: 'login/douyin/mini_game'
}
})
.router()
.koaRouter.Login.routes(),
);