完善养殖端小程序

This commit is contained in:
xuqiuyun
2025-09-23 18:13:11 +08:00
parent bdc1b29934
commit e7a0cd4aa3
58 changed files with 12773 additions and 1228 deletions

View File

@@ -128,9 +128,9 @@ const swaggerOptions = {
customfavIcon: '/favicon.ico'
};
// 使用简化的API文档配置
const simpleSwaggerSpec = require('./swagger-simple');
app.use('/api-docs', swaggerUi.serve, swaggerUi.setup(simpleSwaggerSpec, swaggerOptions));
// Swagger 文档路由配置 - 使用完整的集成配置
const integratedSwaggerSpec = require('./swagger-integrated');
app.use('/api-docs', swaggerUi.serve, swaggerUi.setup(integratedSwaggerSpec, swaggerOptions));
// 基础路由
app.get('/', (req, res) => {