mirror of
https://github.com/Lawin0129/LawinServer.git
synced 2026-01-13 02:42:22 +01:00
LawinServer News Tab for CH2 & CH3
Furthermore: - Fixed the playlist images not loading on some builds. - Added the original solo, duo and squads images. - Fixed not being able to press "Play" when StW was selected via the discovery menu on latest. - Fixed the translations not diplaying for the Portugese (Brazil) language.
This commit is contained in:
@@ -2,7 +2,7 @@ const Express = require("express");
|
||||
const express = Express.Router();
|
||||
const discovery = require("./../responses/discovery/discovery_frontend.json");
|
||||
|
||||
express.post("*discovery/surface/*", async (req, res) => {
|
||||
express.post("*/discovery/surface/*", async (req, res) => {
|
||||
res.json(discovery);
|
||||
})
|
||||
|
||||
@@ -11,7 +11,6 @@ express.post("/links/api/fn/mnemonic", async (req, res) => {
|
||||
|
||||
for (var i in discovery.Panels[0].Pages[0].results) {
|
||||
MnemonicArray.push(discovery.Panels[0].Pages[0].results[i].linkData)
|
||||
console.log(discovery.Panels[0].Pages[0].results[i].linkData.mnemonic);
|
||||
}
|
||||
|
||||
res.json(MnemonicArray);
|
||||
@@ -19,7 +18,6 @@ express.post("/links/api/fn/mnemonic", async (req, res) => {
|
||||
|
||||
express.get("/links/api/fn/mnemonic/*", async (req, res) => {
|
||||
for (var i in discovery.Panels[0].Pages[0].results) {
|
||||
console.log(discovery.Panels[0].Pages[0].results[i].linkData.mnemonic);
|
||||
if (discovery.Panels[0].Pages[0].results[i].linkData.mnemonic == req.url.split("/").slice(-1)[0]) {
|
||||
res.json(discovery.Panels[0].Pages[0].results[i].linkData);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user