feat: 引入管理员相关接口
This commit is contained in:
parent
f36b34ec17
commit
efd901383f
@ -5,9 +5,11 @@ const port = 3000;
|
|||||||
// 中间件
|
// 中间件
|
||||||
app.use(express.json());
|
app.use(express.json());
|
||||||
|
|
||||||
// 用户路由
|
// 路由接入
|
||||||
const userRoutes = require('./routes/user');
|
const userRoutes = require('./routes/user');
|
||||||
|
const adminRoutes = require('./routes/admin');
|
||||||
app.use('/api', userRoutes);
|
app.use('/api', userRoutes);
|
||||||
|
app.use('/api', adminRoutes);
|
||||||
|
|
||||||
// 启动服务器
|
// 启动服务器
|
||||||
app.listen(port, () => {
|
app.listen(port, () => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user