Skip to content

Commit

Permalink
chore: update api url
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelHillcox authored Nov 18, 2024
1 parent 769abf4 commit 1409fe8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/template-updater/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ const runScript = async () => {
}

// Load all the api data
const data = await fetch("https://api.modpacks.ch/public/modpack/popular/installs/FTB/all");
const data = await fetch("https://api.feed-the-beast.com/v1/modpacks/public/modpack/popular/installs/FTB/all");
const packData = await data.json();

const apiModpacks = await Promise.all(
packData.packs.map(async (packId) => {
try {
console.log(`Fetching modpack with the id of ${packId}`)
const modpackReq = await fetch(`https://api.modpacks.ch/public/modpack/${packId}`);
const modpackReq = await fetch(`https://api.feed-the-beast.com/v1/modpacks/public/modpack/${packId}`);
const data = await modpackReq.json();
console.log(`Successfully fetched modpack with the id of ${packId}`)
if (data.status === "success") {
Expand Down

0 comments on commit 1409fe8

Please sign in to comment.