-
Notifications
You must be signed in to change notification settings - Fork 0
getPosts API change. #1
Copy link
Copy link
Open
Description
Systems with a dynamic amount of entries will usually not provide an API to receive all entries as once, since it may contain such a large amount of entries, it'll crash trying to provide them all.
Moreover, you wouldn't usually want to get all entries at once.
I'd suggest to change the following API to include parameters from where to start (offset) and an amount of entries to get (amount) while limiting the amount to a max value.
https://github.com/xpodev/jsblog/blob/main/packages/core/src/blog.ts#L50-L52
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels