Added support for viewing the Battle & OG passes in the Passes Tab. (33.00+)

This commit is contained in:
PRO100KatYT
2024-12-19 19:44:29 +01:00
parent ca725548d6
commit 180c7f188d
5 changed files with 489 additions and 15 deletions

View File

@@ -47,6 +47,13 @@ express.get("/content/api/pages/fortnite-game/radio-stations", async (req, res)
})
})
express.get("/content/api/pages/fortnite-game/seasonpasses", async (req, res) => {
const seasonPasses = require("./../responses/Athena/seasonPasses.json");
functions.chooseTranslationsInJSON(seasonPasses, req)
res.json(seasonPasses)
})
express.get("/content/api/pages/*", async (req, res) => {
const contentpages = functions.getContentPages(req);
@@ -56,7 +63,7 @@ express.get("/content/api/pages/*", async (req, res) => {
express.post("/api/v1/fortnite-br/*/target", async (req, res) => {
const motd = JSON.parse(JSON.stringify(require("./../responses/Athena/motd.json")));
var language = req.body.language || req.body.parameters.language;
functions.chooseTranslationsInJSON(motd, language)
functions.chooseTranslationsInJSON(motd, req, language)
if (req.body.hasOwnProperty("tags")) {
motd.contentItems.forEach(item => {