build: 更新项目结构和配置
- 移除 .gitignore 中的多个文件和目录 - 删除 README.md 文件 - 移除 app.vue 文件 - 删除 nuxt.config.ts 文件
This commit is contained in:
12
server/src/index.ts
Normal file
12
server/src/index.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import express from 'express';
|
||||
import roleRoutes from './routes/role.routes';
|
||||
|
||||
const app = express();
|
||||
const port = 3000;
|
||||
|
||||
// 注册路由
|
||||
app.use('/api', roleRoutes);
|
||||
|
||||
app.listen(port, () => {
|
||||
console.log(`Server is running on http://localhost:${port}`);
|
||||
});
|
||||
Reference in New Issue
Block a user