From efd901383fd306f4280ffa7aa5c3c472a76a8228 Mon Sep 17 00:00:00 2001 From: luozhj33 Date: Thu, 19 Mar 2026 14:30:08 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=BC=95=E5=85=A5=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=91=98=E7=9B=B8=E5=85=B3=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/src/app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/back/src/app.js b/back/src/app.js index f5655cf..a8659c1 100644 --- a/back/src/app.js +++ b/back/src/app.js @@ -5,9 +5,11 @@ const port = 3000; // 中间件 app.use(express.json()); -// 用户路由 +// 路由接入 const userRoutes = require('./routes/user'); +const adminRoutes = require('./routes/admin'); app.use('/api', userRoutes); +app.use('/api', adminRoutes); // 启动服务器 app.listen(port, () => {