diff --git a/packages/core/app.ts b/packages/core/app.ts index 1a24c78..5a189ee 100644 --- a/packages/core/app.ts +++ b/packages/core/app.ts @@ -5,7 +5,7 @@ import { Fn, createServer, Plugable } from './src/index'; // const rpc = new RpcServer({}); const rpc = createServer({ fn: { - prefix: '/apk2', + // prefix: '/apk2', }, }); diff --git a/packages/core/src/server.ts b/packages/core/src/server.ts index 72cb6e3..b3dd8ed 100644 --- a/packages/core/src/server.ts +++ b/packages/core/src/server.ts @@ -150,7 +150,7 @@ export class RpcServer { // console.dir('prefix is string ' + plugin.prefix); const mw = plugin.prefix === '' ? mount(plugin.app) : mount(plugin.prefix, plugin.app); - // console.dir(this); + console.dir(plugin.prefix); this.app.use(mw); // console.dir(plugin.prefix === '');