2026-04-14 17:41:39 +02:00

10 lines
387 B
JavaScript

app.use("/getScriptPatches.lvorex", express.json())
app.post("/getScriptPatches.lvorex", async (req, res) => {
const postBody = req.body
const { keyFound } = await controlKey(req, postBody.key)
if (keyFound === false) return res.json({ code: 404, message: "Not authorized." })
const Patches = await GetPatches()
res.json({ code: 200, message: Patches })
})