This commit is contained in:
2026-04-28 22:36:55 +08:00
parent 71c940ab46
commit b8f1a9e8d7
3 changed files with 24 additions and 6 deletions

View File

@@ -40,7 +40,7 @@ router.post('/upload', (req, res: Response) => {
router.get('/', (req, res: Response) => {
const page = Math.max(1, parseInt(req.query.page as string) || 1);
const limit = Math.min(100, Math.max(1, parseInt(req.query.limit as string) || 20));
const limit = Math.min(999999, Math.max(1, parseInt(req.query.limit as string) || 20));
const offset = (page - 1) * limit;
let where = 'WHERE 1=1';