Skip to content

Commit

Permalink
Fix post ordering, and limit to 10
Browse files Browse the repository at this point in the history
  • Loading branch information
archey347 committed Jan 18, 2025
1 parent 26074d5 commit c2c01c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/blog/api_client.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export function getPosts() {
return fetch('https://spanner.wwlrc.co.uk/api/clubs/c/2/blog_posts').then((res) => res.json()).then((res) => { return res.rows })
return fetch('https://spanner.wwlrc.co.uk/api/clubs/c/2/blog_posts?size=10&page=0&sorts[created_at]=desc').then((res) => res.json()).then((res) => { return res.rows })
}

0 comments on commit c2c01c8

Please sign in to comment.