From d6ed3945570b025e4db3bd5c7c436bcadad58d9b Mon Sep 17 00:00:00 2001 From: whyour Date: Thu, 4 Nov 2021 18:07:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dopenapi=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/loaders/express.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/back/loaders/express.ts b/back/loaders/express.ts index 0c46af7b..f76ec5a0 100644 --- a/back/loaders/express.ts +++ b/back/loaders/express.ts @@ -18,7 +18,7 @@ export default ({ app }: { app: Application }) => { app.use(cors()); app.use((req, res, next) => { - if (req.path.startsWith('/api')) { + if (req.path.startsWith('/api') || req.path.startsWith('/open')) { next(); } else { return handler(req, res, {