Change structure of LawinServer

This commit is contained in:
Lawin0129
2022-02-15 17:45:46 +00:00
parent acf6b1d3d6
commit 63cb770799
28 changed files with 7162 additions and 7102 deletions

23
structure/storefront.js Normal file
View File

@@ -0,0 +1,23 @@
const Express = require("express");
const express = Express.Router();
const functions = require("./functions.js");
const catalog = functions.getItemShop();
const keychain = require("./../responses/keychain.json");
express.get("/fortnite/api/storefront/v2/catalog", async (req, res) => {
if (req.headers["user-agent"].includes("2870186")) {
return res.status(404).end();
}
res.json(catalog);
})
express.get("/fortnite/api/storefront/v2/keychain", async (req, res) => {
res.json(keychain)
})
express.get("/catalog/api/shared/bulk/offers", async (req, res) => {
res.json({});
})
module.exports = express;