From 3b6156602429da34a91725565432c4302c531696 Mon Sep 17 00:00:00 2001 From: Enstrayed <48845980+Enstrayed@users.noreply.github.com> Date: Thu, 13 Jun 2024 14:03:59 -0700 Subject: [PATCH] groundwork for new nowplaying endpoint --- {routes => deprecated}/cider.js | 0 routes/nowplaying.js | 11 +++++++++++ 2 files changed, 11 insertions(+) rename {routes => deprecated}/cider.js (100%) create mode 100644 routes/nowplaying.js diff --git a/routes/cider.js b/deprecated/cider.js similarity index 100% rename from routes/cider.js rename to deprecated/cider.js diff --git a/routes/nowplaying.js b/routes/nowplaying.js new file mode 100644 index 0000000..2254ab3 --- /dev/null +++ b/routes/nowplaying.js @@ -0,0 +1,11 @@ +const { app, globalConfig } = require("../index.js") + +app.get("/nowplaying", (rreq,rres) => { + if (rreq.query.format === "html") { + rres.send("The /nowplaying endpoint is currently under construction.") + } else { + rres.send({"message":"The /nowplaying endpoint is currently under construction."}) + } +}) + +module.exports = {app} \ No newline at end of file