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