Skip to content

Commit

Permalink
latest articles
Browse files Browse the repository at this point in the history
  • Loading branch information
SH20RAJ authored Mar 26, 2024
1 parent 31a7472 commit 42f367f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default function ArticlesPage() {
setIsLoading(true);
try {
const response = await fetch(
`https://dev.to/api/articles/?per_page=22&page=${page}`
`https://dev.to/api/articles/latest/?per_page=22&page=${page}`
);
const data = await response.json();
setArticles((prevArticles) => [...prevArticles, ...data]);
Expand Down

0 comments on commit 42f367f

Please sign in to comment.