mirror of
https://github.com/Lawin0129/LawinServer.git
synced 2026-01-13 02:42:22 +01:00
@@ -1,24 +1,9 @@
|
||||
const Express = require("express");
|
||||
const express = Express.Router();
|
||||
const discovery = require("./../responses/discovery_frontend.json");
|
||||
const discovery = require("./../responses/discovery/discovery_frontend.json");
|
||||
|
||||
express.post("/fortnite/api/game/v2/creative/discovery/surface/*", async (req, res) => {
|
||||
switch (req.body.surfaceName) {
|
||||
case "CreativeDiscoverySurface_Frontend":
|
||||
if (req.body.panelName) {
|
||||
for (var i in discovery.Panels) {
|
||||
if (discovery.Panels[i].PanelName == req.body.panelName) {
|
||||
res.json(discovery.Panels[i].Pages[req.body.pageIndex || 0])
|
||||
}
|
||||
}
|
||||
} else {
|
||||
res.json(discovery);
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
res.json({});
|
||||
}
|
||||
res.json(discovery);
|
||||
})
|
||||
|
||||
module.exports = express;
|
||||
@@ -231,6 +231,10 @@ function getContentPages(req) {
|
||||
contentpages.subgameinfo.battleroyale.image = "https://cdn.discordapp.com/attachments/927739901540188200/930880421514846268/19br-wf-subgame-select-512x1024-16d8bb0f218f.jpg";
|
||||
contentpages.specialoffervideo.bSpecialOfferEnabled = "true";
|
||||
}
|
||||
|
||||
if (memory.season == 20) {
|
||||
contentpages.dynamicbackgrounds.backgrounds.backgrounds[0].backgroundimage = "https://cdn2.unrealengine.com/t-bp20-lobby-2048x1024-d89eb522746c.png";
|
||||
}
|
||||
} catch (err) {}
|
||||
|
||||
return contentpages;
|
||||
|
||||
@@ -52,11 +52,7 @@ express.get("/fortnite/api/game/v2/friendcodes/*/epic", async (req, res) => {
|
||||
express.get("/launcher/api/public/distributionpoints/", async (req, res) => {
|
||||
res.json({
|
||||
"distributions": [
|
||||
"https://download.epicgames.com/",
|
||||
"https://download2.epicgames.com/",
|
||||
"https://download3.epicgames.com/",
|
||||
"https://download4.epicgames.com/",
|
||||
"https://epicgames-download1.akamaized.net/"
|
||||
"https://lawinserver.ol.epicgames.com/"
|
||||
]
|
||||
});
|
||||
})
|
||||
@@ -71,14 +67,14 @@ express.get("/launcher/api/public/assets/*", async (req, res) => {
|
||||
"items": {
|
||||
"MANIFEST": {
|
||||
"signature": "LawinServer",
|
||||
"distribution": "https://ol.epicgames.com/",
|
||||
"distribution": "https://lawinserver.ol.epicgames.com/",
|
||||
"path": "Builds/Fortnite/Content/CloudDir/LawinServer.manifest",
|
||||
"hash": "55bb954f5596cadbe03693e1c06ca73368d427f3",
|
||||
"additionalDistributions": []
|
||||
},
|
||||
"CHUNKS": {
|
||||
"signature": "LawinServer",
|
||||
"distribution": "https://ol.epicgames.com/",
|
||||
"distribution": "https://lawinserver.ol.epicgames.com/",
|
||||
"path": "Builds/Fortnite/Content/CloudDir/LawinServer.manifest",
|
||||
"additionalDistributions": []
|
||||
}
|
||||
@@ -95,7 +91,15 @@ express.get("/Builds/Fortnite/Content/CloudDir/*.manifest", async (req, res) =>
|
||||
res.status(200).send(manifest).end();
|
||||
})
|
||||
|
||||
express.get("/Builds/Fortnite/Content/CloudDir/*/Full.ini", async (req, res) => {
|
||||
express.get("/Builds/Fortnite/Content/CloudDir/*.chunk", async (req, res) => {
|
||||
res.set("Content-Type", "application/octet-stream")
|
||||
|
||||
const chunk = fs.readFileSync(path.join(__dirname, "..", "responses", "CloudDir", "LawinServer.chunk"));
|
||||
|
||||
res.status(200).send(chunk).end();
|
||||
})
|
||||
|
||||
express.get("/Builds/Fortnite/Content/CloudDir/*.ini", async (req, res) => {
|
||||
const ini = fs.readFileSync(path.join(__dirname, "..", "responses", "CloudDir", "Full.ini"));
|
||||
|
||||
res.status(200).send(ini).end();
|
||||
@@ -216,14 +220,20 @@ express.post("/datarouter/api/v1/public/data", async (req, res) => {
|
||||
})
|
||||
|
||||
express.post("/api/v1/assets/Fortnite/*/*", async (req, res) => {
|
||||
res.json({
|
||||
"FortCreativeDiscoverySurface": {
|
||||
"meta": {
|
||||
"promotion": 0
|
||||
},
|
||||
"assets": {}
|
||||
}
|
||||
})
|
||||
if (req.body.hasOwnProperty("FortCreativeDiscoverySurface") && req.body.FortCreativeDiscoverySurface == 0) {
|
||||
const discovery_api_assets = require("./../responses/discovery/discovery_api_assets.json");
|
||||
res.json(discovery_api_assets)
|
||||
}
|
||||
else {
|
||||
res.json({
|
||||
"FortCreativeDiscoverySurface": {
|
||||
"meta": {
|
||||
"promotion": req.body.FortCreativeDiscoverySurface || 0
|
||||
},
|
||||
"assets": {}
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
express.get("/region", async (req, res) => {
|
||||
|
||||
Reference in New Issue
Block a user