Skip to content

Commit 8c72673

Browse files
committed
api.curseforge.com
1 parent cbdfc69 commit 8c72673

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/serverSetupGenerator.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,15 @@ module.exports = async function genertateServer(modpackZip, destination) {
6868

6969
for (let mod of manifest.files) {
7070
console.log(`Fetching information of '${mod.projectID}'`);
71-
const modInfo = await fetchJSON(`https://addons-ecs.forgesvc.net/api/v2/addon/${mod.projectID}/`);
71+
const modInfo = await fetchJSON(`https://api.curseforge.com/v1/mods/${mod.projectID}/`);
7272
modList.push({
7373
name: modInfo.name,
7474
by: modInfo.authors.map(author => author.name).join(', '),
7575
url: modInfo.websiteUrl
7676
});
7777

7878
console.log(`Fetching download information of '${modInfo.name}'`);
79-
const files = await fetchJSON(`https://addons-ecs.forgesvc.net/api/v2/addon/${mod.projectID}/files/`);
79+
const files = await fetchJSON(`https://api.curseforge.com/v1/mods/${mod.projectID}/files/`);
8080
console.log(`Fetched download information of '${modInfo.name}'`);
8181
console.log(`Searching for file '${mod.fileID}'`);
8282
const file = files.find(file => file.id === mod.fileID);

0 commit comments

Comments
 (0)