groundwork for new nowplaying endpoint
This commit is contained in:
11
routes/nowplaying.js
Normal file
11
routes/nowplaying.js
Normal 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}
|
||||
Reference in New Issue
Block a user