From aad4fc0eeb04d8527a763cb4d931a8546ce303df Mon Sep 17 00:00:00 2001 From: npmstudy Date: Wed, 15 Nov 2023 20:10:36 +0800 Subject: [PATCH] chore: stash --- packages/core/app.ts | 2 +- packages/core/src/server.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 === '');