完善养殖端小程序
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user