groundwork for new nowplaying endpoint

This commit is contained in:
Enstrayed
2024-06-13 14:03:59 -07:00
parent 907ddc8819
commit 3b61566024
2 changed files with 11 additions and 0 deletions

11
routes/nowplaying.js Normal file
View File

@@ -0,0 +1,11 @@
const { app, globalConfig } = require("../index.js")
app.get("/nowplaying", (rreq,rres) => {
if (rreq.query.format === "html") {
rres.send("<span>The /nowplaying endpoint is currently under construction.</span>")
} else {
rres.send({"message":"The /nowplaying endpoint is currently under construction."})
}
})
module.exports = {app}