diff --git a/responses/CloudDir/Full.ini b/responses/CloudDir/Full.ini new file mode 100644 index 0000000..0bfbd3e --- /dev/null +++ b/responses/CloudDir/Full.ini @@ -0,0 +1,90 @@ +[LawinServer.manifest,FortniteCreative] +DeltaDownloadSize="0" +DownloadSize="0" +[LawinServer.manifest,FortniteCampaign] +DeltaDownloadSize="0" +DownloadSize="0" +[LawinServer.manifest,Lang.pl] +DeltaDownloadSize="0" +DownloadSize="0" +[LawinServer.manifest,Lang.es-419Optional] +DeltaDownloadSize="0" +DownloadSize="0" +[LawinServer.manifest,StartupOptional] +DeltaDownloadSize="0" +DownloadSize="0" +[LawinServer.manifest,FortniteCampaignTutorial] +DeltaDownloadSize="0" +DownloadSize="0" +[LawinServer.manifest,Lang.allOptional] +DeltaDownloadSize="0" +DownloadSize="0" +[LawinServer.manifest,Lang.itOptional] +DeltaDownloadSize="0" +DownloadSize="0" +[LawinServer.manifest,Lang.es-419] +DeltaDownloadSize="0" +DownloadSize="0" +[LawinServer.manifest,KairosCapture] +DeltaDownloadSize="0" +DownloadSize="0" +[LawinServer.manifest,FortniteBR] +DeltaDownloadSize="0" +DownloadSize="0" +[LawinServer.manifest,FortniteCreativeOptional] +DeltaDownloadSize="0" +DownloadSize="0" +[LawinServer.manifest,Lang.zh-CN] +DeltaDownloadSize="0" +DownloadSize="0" +[LawinServer.manifest,Lang.ruOptional] +DeltaDownloadSize="0" +DownloadSize="0" +[LawinServer.manifest,Lang.frOptional] +DeltaDownloadSize="0" +DownloadSize="0" +[LawinServer.manifest,Lang.deOptional] +DeltaDownloadSize="0" +DownloadSize="0" +[LawinServer.manifest,Lang.de] +DeltaDownloadSize="0" +DownloadSize="0" +[LawinServer.manifest,FortniteBROptional] +DeltaDownloadSize="0" +DownloadSize="0" +[LawinServer.manifest,FortniteCampaignOptional] +DeltaDownloadSize="0" +DownloadSize="0" +[LawinServer.manifest,FortniteCampaignTutorialOptional] +DeltaDownloadSize="0" +DownloadSize="0" +[LawinServer.manifest,Lang.ru] +DeltaDownloadSize="0" +DownloadSize="0" +[LawinServer.manifest,Lang.plOptional] +DeltaDownloadSize="0" +DownloadSize="0" +[LawinServer.manifest,Lang.fr] +DeltaDownloadSize="0" +DownloadSize="0" +[LawinServer.manifest,Lang.es-ESOptional] +DeltaDownloadSize="0" +DownloadSize="0" +[LawinServer.manifest,KairosCaptureOptional] +DeltaDownloadSize="0" +DownloadSize="0" +[LawinServer.manifest,Lang.all] +DeltaDownloadSize="0" +DownloadSize="0" +[LawinServer.manifest,Lang.zh-CNOptional] +DeltaDownloadSize="0" +DownloadSize="0" +[LawinServer.manifest,Lang.it] +DeltaDownloadSize="0" +DownloadSize="0" +[LawinServer.manifest,Lang.es-ES] +DeltaDownloadSize="0" +DownloadSize="0" +[LawinServer.manifest,Startup] +DeltaDownloadSize="0" +DownloadSize="0" diff --git a/responses/CloudDir/LawinServer.manifest b/responses/CloudDir/LawinServer.manifest new file mode 100644 index 0000000..b29aa32 Binary files /dev/null and b/responses/CloudDir/LawinServer.manifest differ diff --git a/structure/main.js b/structure/main.js index 8ef1adb..fef73c1 100644 --- a/structure/main.js +++ b/structure/main.js @@ -1,6 +1,7 @@ const Express = require("express"); const express = Express.Router(); const fs = require("fs"); +const path = require("path"); const functions = require("./functions.js"); express.get("/clearitemsforshop", async (req, res) => { @@ -60,6 +61,46 @@ express.get("/launcher/api/public/distributionpoints/", async (req, res) => { }); }) +express.get("/launcher/api/public/assets/*", async (req, res) => { + res.json({ + "appName": "FortniteContentBuilds", + "labelName": "LawinServer", + "buildVersion": "++Fortnite+Release-20.00-CL-19458861-Windows", + "catalogItemId": "5cb97847cee34581afdbc445400e2f77", + "expires": "9999-12-31T23:59:59.999Z", + "items": { + "MANIFEST": { + "signature": "LawinServer", + "distribution": "https://ol.epicgames.com/", + "path": "Builds/Fortnite/Content/CloudDir/LawinServer.manifest", + "hash": "55bb954f5596cadbe03693e1c06ca73368d427f3", + "additionalDistributions": [] + }, + "CHUNKS": { + "signature": "LawinServer", + "distribution": "https://ol.epicgames.com/", + "path": "Builds/Fortnite/Content/CloudDir/LawinServer.manifest", + "additionalDistributions": [] + } + }, + "assetId": "FortniteContentBuilds" + }); +}) + +express.get("/Builds/Fortnite/Content/CloudDir/*.manifest", async (req, res) => { + res.set("Content-Type", "application/octet-stream") + + const manifest = fs.readFileSync(path.join(__dirname, "..", "responses", "CloudDir", "LawinServer.manifest")); + + res.status(200).send(manifest).end(); +}) + +express.get("/Builds/Fortnite/Content/CloudDir/*/Full.ini", async (req, res) => { + const ini = fs.readFileSync(path.join(__dirname, "..", "responses", "CloudDir", "Full.ini")); + + res.status(200).send(ini).end(); +}) + express.post("/fortnite/api/game/v2/grant_access/*", async (req, res) => { res.json({}); res.status(204);