load ytmusic stuffs from cache and add dev logging #7
4
index.js
4
index.js
@@ -128,7 +128,9 @@ async function send404(req, res) {
|
|||||||
const app = express();
|
const app = express();
|
||||||
|
|
||||||
app.use((req, res, next) => {
|
app.use((req, res, next) => {
|
||||||
if (dev == "true") console.log(req);
|
if (dev == "true") {
|
||||||
|
console.log(`got a req to ${req.path}?${req.query} with a body of ${req.body}`);
|
||||||
|
}
|
||||||
next();
|
next();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user