feat: 添加语音模块支持,优化服务启动方式

This commit is contained in:
2026-03-17 04:03:39 +08:00
parent 308df54a15
commit 90517f2289
18 changed files with 221 additions and 43 deletions

View File

@@ -23,8 +23,12 @@ import { apiModules } from './modules/index.js'
import { validateModuleConsistency } from './infra/moduleValidator.js'
import path from 'path'
import fs from 'fs'
import { fileURLToPath } from 'url'
dotenv.config()
const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
dotenv.config({ path: path.resolve(__dirname, './.env') })
const app: express.Application = express()
export const container = new ServiceContainer()