完成中转仓管理

This commit is contained in:
xuqiuyun
2025-12-08 15:24:43 +08:00
parent e968fcf52a
commit 620975c04d
981 changed files with 154245 additions and 83 deletions

16
datav/api/server.js Normal file
View File

@@ -0,0 +1,16 @@
const express = require('express');
const { createProxyMiddleware } = require('http-proxy-middleware');
const path = require('path');
const app = express();
const PORT = 8080;
app.use('/api', createProxyMiddleware({
target: 'https://cattletrack.aiotagro.com',
changeOrigin: true,
secure: false,
}));
app.use(express.static(path.join(__dirname, 'datav')));
app.listen(PORT, () => console.log(`http://127.0.0.1:8081`));