()
| 14 | */ |
| 15 | class DLMMWebServer { |
| 16 | constructor() { |
| 17 | this.app = express(); |
| 18 | this.server = null; |
| 19 | this.wsServer = null; |
| 20 | this.port = process.env.PORT || 7001; |
| 21 | |
| 22 | // 🌐 动态配置API基础URL |
| 23 | this.apiBaseUrl = this.getApiBaseUrl(); |
| 24 | console.log('🔧 API代理地址:', this.apiBaseUrl); |
| 25 | |
| 26 | this.setupMiddleware(); |
| 27 | this.setupRoutes(); |
| 28 | |
| 29 | } |
| 30 | |
| 31 | /** |
| 32 | * 🌐 动态获取API基础URL |
nothing calls this directly
no test coverage detected