From 1e188e9faf04923432a439e9887b343e0627c481 Mon Sep 17 00:00:00 2001 From: hz4th_coder Date: Wed, 8 Jul 2026 01:07:07 +0800 Subject: [PATCH] =?UTF-8?q?v1.0.2=20-=20=E4=BF=AE=E5=A4=8D=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=90=8E=E5=8F=B0=E8=B7=AF=E7=94=B1=E9=87=8D=E5=AE=9A?= =?UTF-8?q?=E5=90=91=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server.js b/server.js index a2afa5b..8c02abf 100644 --- a/server.js +++ b/server.js @@ -549,6 +549,10 @@ app.delete('/admin/api/posts/:id', adminAuth, (req, res) => { }); // 管理页面路由 +app.get('/admin', (req, res) => { + res.redirect('/admin/'); +}); + app.get('/admin/*', (req, res) => { res.sendFile(path.join(__dirname, 'public', 'admin', 'index.html')); });