From 0da9e35d8edd347b2ec3b6e2044a7ac54bb6688c Mon Sep 17 00:00:00 2001 From: "suguo.yao" Date: Thu, 19 Sep 2024 17:24:33 +0800 Subject: [PATCH] why? --- app.js | 1 + public/index.html | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 public/index.html diff --git a/app.js b/app.js index 1b04e3f..b5525dc 100644 --- a/app.js +++ b/app.js @@ -24,6 +24,7 @@ const app=express() app.use(koaJwt({ secret: 'yiyuan0911'}).unless({ path: [ + /^\/static|css|js|img|fonts|favicon|manifest/, /^\/user\/login/, /^\/user\/register/ ] diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..bf758bc --- /dev/null +++ b/public/index.html @@ -0,0 +1,11 @@ + + + + + + Document + + +

hello

+ + \ No newline at end of file