chore: 修改默认端口为16016
This commit is contained in:
@@ -5,7 +5,7 @@ const echarts = require('echarts');
|
||||
const path = require('path');
|
||||
|
||||
const app = express();
|
||||
const PORT = process.env.PORT || 16023;
|
||||
const PORT = process.env.PORT || 16016;
|
||||
|
||||
// 中间件
|
||||
app.use(cors());
|
||||
@@ -438,7 +438,7 @@ app.get('/api/docs', (req, res) => {
|
||||
},
|
||||
returns: 'image/png',
|
||||
example: {
|
||||
request: `curl -X POST http://localhost:16023/api/chart \\
|
||||
request: `curl -X POST http://localhost:16016/api/chart \\
|
||||
-H "Content-Type: application/json" \\
|
||||
-d '{
|
||||
"data": "产品, Q1, Q2, Q3, Q4\\n手机, 1200, 1800, 2100, 2500\\n平板, 800, 950, 1100, 1300",
|
||||
@@ -465,7 +465,7 @@ app.get('/api/docs', (req, res) => {
|
||||
},
|
||||
returns: 'image/png',
|
||||
example: {
|
||||
request: `curl "http://localhost:16023/api/chart?data=产品,Q1,Q2\\n手机,100,200\\n平板,150,250&type=bar&title=测试" -o chart.png`
|
||||
request: `curl "http://localhost:16016/api/chart?data=产品,Q1,Q2\\n手机,100,200\\n平板,150,250&type=bar&title=测试" -o chart.png`
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user