Upload ppt.js
Browse files
backend/src/routes/ppt.js
CHANGED
|
@@ -5,6 +5,12 @@ import memoryStorageService from '../services/memoryStorageService.js';
|
|
| 5 |
|
| 6 |
const router = express.Router();
|
| 7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
// 选择存储服务
|
| 9 |
const getStorageService = () => {
|
| 10 |
// 如果GitHub Token未配置,使用内存存储
|
|
|
|
| 5 |
|
| 6 |
const router = express.Router();
|
| 7 |
|
| 8 |
+
// 添加路由级别的日志中间件
|
| 9 |
+
router.use((req, res, next) => {
|
| 10 |
+
console.log(`PPT Router - ${req.method} ${req.path} - Body:`, Object.keys(req.body || {}));
|
| 11 |
+
next();
|
| 12 |
+
});
|
| 13 |
+
|
| 14 |
// 选择存储服务
|
| 15 |
const getStorageService = () => {
|
| 16 |
// 如果GitHub Token未配置,使用内存存储
|