mirror of
https://github.com/Auties00/Reboot-Launcher.git
synced 2026-01-13 19:22:22 +01:00
24 lines
757 B
JavaScript
24 lines
757 B
JavaScript
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; |