Upload public.js
Browse files
backend/src/routes/public.js
CHANGED
@@ -215,7 +215,7 @@ router.get('/view/:userId/:pptId/:slideIndex?', async (req, res, next) => {
|
|
215 |
});
|
216 |
|
217 |
// API接口:获取PPT数据和指定幻灯片(JSON格式)
|
218 |
-
router.get('/api
|
219 |
try {
|
220 |
const { userId, pptId, slideIndex = 0 } = req.params;
|
221 |
const fileName = `${pptId}.json`;
|
|
|
215 |
});
|
216 |
|
217 |
// API接口:获取PPT数据和指定幻灯片(JSON格式)
|
218 |
+
router.get('/api-view/:userId/:pptId/:slideIndex?', async (req, res, next) => {
|
219 |
try {
|
220 |
const { userId, pptId, slideIndex = 0 } = req.params;
|
221 |
const fileName = `${pptId}.json`;
|