完善保险端前后端和养殖端小程序

This commit is contained in:
xuqiuyun
2025-09-22 19:09:45 +08:00
parent 02a25515a9
commit 325c114c38
256 changed files with 48348 additions and 4444 deletions

View File

@@ -22,7 +22,7 @@ dotenv.config();
// 创建Express应用和HTTP服务器
const app = express();
const server = http.createServer(app);
const PORT = process.env.PORT || 3001;
const PORT = process.env.PORT || 5350;
// 配置文件上传
const storage = multer.diskStorage({
@@ -128,7 +128,9 @@ const swaggerOptions = {
customfavIcon: '/favicon.ico'
};
app.use('/api-docs', swaggerUi.serve, swaggerUi.setup(swaggerSpec, swaggerOptions));
// 使用简化的API文档配置
const simpleSwaggerSpec = require('./swagger-simple');
app.use('/api-docs', swaggerUi.serve, swaggerUi.setup(simpleSwaggerSpec, swaggerOptions));
// 基础路由
app.get('/', (req, res) => {