add processing server check

This commit is contained in:
sky
2025-08-12 14:14:36 -04:00
parent 9389d0c7e4
commit db94e9fe49
5 changed files with 228 additions and 110 deletions

View File

@ -338,6 +338,10 @@ app.post("/api/admin/ban", async (req, res) => {
app.use("/api/music/search", async (req, res, next) => {
res.status(200).send(await search(req.query.q))
});
app.use("/api/music/download", async (req, res, next) => {
res.status(200).send(await download(req.query.url))
});
const server = app.listen(port, () => {
console.log(log.success("Express is online."));
console.log("- " + log.info("http://localhost:" + port));