We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
companion/src/components/widgets/util/getApiData.ts
Line 2 in effea93
Line 7 in effea93
Line 12 in effea93
Allows endpoint devs to reach out if app starts doing something funky, and ensures that you receive the proper language from multi-language end points
let requestHeaders = { "User-Agent": "Helldivers 2 Companion", "Accept-Language": "en-US" } export async function API(){ const res = await fetch("https://api.diveharder.com/all", {headers: requestHeaders}) return res.json() } export async function statusAPI(){ const res = await fetch("https://helldivers-2.fly.dev/api/801/status", {headers: requestHeaders}) return res.json() } export async function stratagemsAPI(){ const res = await fetch("https://api-hellhub-collective.koyeb.app/api/stratagems?limit=59", {headers: requestHeaders}) return res.json() }
The text was updated successfully, but these errors were encountered:
09d849c
No branches or pull requests
companion/src/components/widgets/util/getApiData.ts
Line 2 in effea93
companion/src/components/widgets/util/getApiData.ts
Line 7 in effea93
companion/src/components/widgets/util/getApiData.ts
Line 12 in effea93
Allows endpoint devs to reach out if app starts doing something funky, and ensures that you receive the proper language from multi-language end points
The text was updated successfully, but these errors were encountered: