Skip to content

Commit

Permalink
feat: add lifecyle with koa-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
npmstudy committed Oct 25, 2023
1 parent 1ec3239 commit 629bed4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,8 @@ export function httprpc(config?: any) {
const app = new Koa();

app.use(_cfg.beforeAll);

app.use(bodyParser());

// console.log(config);
// console.log(app);

return Object.assign(this, {
rpcFunctions: {},
app: app,
Expand All @@ -62,7 +58,7 @@ export function httprpc(config?: any) {
);
}
if (this.rpcFunctions[name]) {
// console.log(`add ${name}: ${fn}`);
log(`add ${name}: ${fn}`);
console.log(`this.rpcFunctions[${name}] exisit`);
}

Expand Down

0 comments on commit 629bed4

Please sign in to comment.