mirror of
https://github.com/Lawin0129/LawinServer.git
synced 2026-01-13 02:42:22 +01:00
Added support for viewing the Battle & OG passes in the Passes Tab. (33.00+)
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user