Pilot Panel

Paginate the orders endpointAct38.2k / 200k$0.42

GET /orders returns every order at once. Add cursor pagination with a limit of 50 and update the test.

  1. Readsrc/routes/orders.ts64 lines
  2. The handler loads all orders. I'll add a cursor on id and a limit capped at 50.

  3. Editedsrc/routes/orders.ts+14 −3
    Checkpoint
  4. Editedtest/orders.test.ts+21 −2
    Checkpoint
  5. Rannpm test -- orders9 passed · 2.8 s
    Checkpoint

Done. /orders now takes a cursor and a limit (at most 50) and returns next_cursor. The test covers two pages and the cap.

← Pilot Panel