mirror of
https://github.com/Auties00/Reboot-Launcher.git
synced 2026-01-13 11:12:23 +01:00
9.1.4
This commit is contained in:
24
backend/structure/contentpages.js
Normal file
24
backend/structure/contentpages.js
Normal file
@@ -0,0 +1,24 @@
|
||||
const Express = require("express");
|
||||
const express = Express.Router();
|
||||
const functions = require("./functions.js");
|
||||
|
||||
express.get("/content/api/pages/*", async (req, res) => {
|
||||
const contentpages = functions.getContentPages(req);
|
||||
|
||||
res.json(contentpages)
|
||||
})
|
||||
|
||||
express.post("/api/v1/fortnite-br/surfaces/motd/target", async (req, res) => {
|
||||
const motdTarget = JSON.parse(JSON.stringify(require("./../responses/Athena/motdTarget.json")));
|
||||
|
||||
try {
|
||||
motdTarget.contentItems.forEach(item => {
|
||||
item.contentFields.title = item.contentFields.title[req.body.language];
|
||||
item.contentFields.body = item.contentFields.body[req.body.language];
|
||||
})
|
||||
} catch (err) {}
|
||||
|
||||
res.json(motdTarget)
|
||||
})
|
||||
|
||||
module.exports = express;
|
||||
Reference in New Issue
Block a user