10 lines
387 B
JavaScript
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 })
|
|
}) |