radicalplatforms / shafa

A wardrobe logging, composition, and organization app
https://shafa.app
Mozilla Public License 2.0
0 stars 0 forks source link

Add pagination to GET /api/items #98

Closed rak3rman closed 5 months ago

rak3rman commented 6 months ago

Description

Add pagination to the GET /api/items route using limit and offset modifiers to the query: https://orm.drizzle.team/docs/select#limit--offset. Should accept a page query that defaults to 0 if omitted AND a size query that defaults to 25 if omitted. Ensure that both queries are validated properly using Zod.

Both attributes should be passed in as a query, not a parameter: https://hono.dev/api/request#queries

Acceptance Criteria

Generated by Zenhub AI