Implement a GET /posts endpoint that allows pagination through all posts, and returns the full data required to display the post card (banner URL, title, author id/name, excerpt, publish date, word count, tags)
Query parameters:
page=1
limit=20
sort=date
author=crutchcorn
This should implicitly filter out posts without a publishedAt date, or where noindex=true.
NOTE: excerpt, word count, and tags are not currently in the posts db table
Implement a
GET /postsendpoint that allows pagination through all posts, and returns the full data required to display the post card (banner URL, title, author id/name, excerpt, publish date, word count, tags)Query parameters:
page=1limit=20sort=dateauthor=crutchcornThis should implicitly filter out posts without a
publishedAtdate, or wherenoindex=true.NOTE: excerpt, word count, and tags are not currently in the posts db table