update server/routers/back-new/server.js

This commit is contained in:
xingzhe.ru
2025-07-02 10:02:36 +00:00
parent ca01d1c538
commit 1383e360a1

View File

@@ -1,4 +1,5 @@
require('dotenv').config();
console.log('GIGACHAT_API_KEY:', process.env.GIGACHAT_API_KEY);
const express = require('express');
const cors = require('cors');
@@ -9,7 +10,7 @@ app.use(cors());
app.use(express.json());
// 路由前缀要和前端请求一致
app.use('back-new', router);
app.use('/ms/back-new', router);
const PORT = process.env.PORT || 3000;
app.listen(PORT, () => {