npm install
npm start- 将此目录推送到 GitHub
- 在 Railway 中创建新项目
- 选择 GitHub 仓库
- 自动部署
GET /- 服务器状态GET /api/health- 健康检查POST /api/auth/register- 用户注册POST /api/auth/login- 用户登录GET /api/user/profile- 获取用户信息PUT /api/user/profile- 更新用户资料PUT /api/user/password- 修改密码
auth- 认证room:create- 创建房间room:list- 获取房间列表room:join- 加入房间room:leave- 离开房间player:faction- 选择阵营player:ready- 准备game:start- 开始游戏