Skip to content

Commit

Permalink
Update contributors URL
Browse files Browse the repository at this point in the history
  • Loading branch information
255kb committed Jan 24, 2024
1 parent a4c23a1 commit 6b050c4
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions pages/about.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,19 @@ export async function getStaticProps() {

try {
const res = await fetch(
'https://api.github.com/repos/mockoon/mockoon/stats/contributors'
'https://api.github.com/repos/mockoon/mockoon/contributors?per_page=100',
{
headers: {
Accept: 'application/vnd.github+json'
}
}
);
const data = await res.json();

contributors = data.map((contribution) => {
contributors = data.map((contributor) => {
return {
username: contribution.author.login,
avatarUrl: contribution.author.avatar_url
username: contributor.login,
avatarUrl: contributor.avatar_url
};
});

Expand Down

0 comments on commit 6b050c4

Please sign in to comment.