mirror of
https://github.com/Auties00/Reboot-Launcher.git
synced 2026-01-13 11:12:23 +01:00
23 lines
634 B
JavaScript
23 lines
634 B
JavaScript
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; |