Goal
Create a pure function to safely parse limit and offset query params.
Context
server-mvp.ts uses parseInt on query strings; invalid values can become NaN.
Acceptance criteria
Out of scope
- Cursor pagination
- Changing live endpoint defaults
Conflict rule
New files only.
Goal
Create a pure function to safely parse
limitandoffsetquery params.Context
server-mvp.tsusesparseInton query strings; invalid values can becomeNaN.Acceptance criteria
backend/src/utils/parse-pagination.ts+ testsOut of scope
Conflict rule
New files only.