Skip to content

Commit

Permalink
more minified
Browse files Browse the repository at this point in the history
  • Loading branch information
SH20RAJ authored Mar 25, 2024
1 parent c4ff91c commit 15da881
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/app/sitemapsh/[id]/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,12 @@ function generateRandomNumber(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}

// Usage example to generate a random number between 1 and 10000
const randomNumber = generateRandomNumber(1, 1000);
console.log(randomNumber);

// Mock function to fetch articles (replace this with your actual implementation)
let getArticlesFromDevTo = async (params) => {
console.log("params", params);
const response = await fetch(
`https://dev.to/api/articles/latest/?per_page=1000&page=${
0
`https://dev.to/api/articles/latest/?per_page=500&page=${
params
}`
);
const data = await response.json();
Expand Down

0 comments on commit 15da881

Please sign in to comment.