Skip to content

Commit

Permalink
24.04.30 - Merge pull request #8 from chatterchats/master
Browse files Browse the repository at this point in the history
Implement `X-Super-Client` and `X-Super-Contact`
  • Loading branch information
Mixhi1845 committed Apr 30, 2024
2 parents 98e9068 + cde10ab commit c0e1602
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/widgets/util/getApiData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ export async function API() {
const res = await fetch("https://api.diveharder.com/v1/all", {
headers: {
"User-Agent": "Helldivers 2 Companion - helldiverscompanion.app",
"Accept-Language": "en-US"
"Accept-Language": "en-US",
"X-Super-Client": "Helldivers 2 Companion - helldiverscompanion.app",
"X-Super-Contact": "@.mixhi"
},
next: { revalidate: 300 }
});
Expand All @@ -13,7 +15,9 @@ export async function statusAPI(){
const res = await fetch("https://api.helldivers2.dev/api/v1/planets",{
headers: {
"User-Agent": "Helldivers 2 Companion - helldiverscompanion.app",
"Accept-Language": "en-US"
"Accept-Language": "en-US",
"X-Super-Client": "Helldivers 2 Companion - helldiverscompanion.app",
"X-Super-Contact": "@.mixhi"
},
next: { revalidate: 300 }
});
Expand Down

0 comments on commit c0e1602

Please sign in to comment.