mirror of
https://github.com/SileNce5k/discord_bot_mgmt.git
synced 2025-04-20 03:26:14 +02:00
Add simple logging
This commit is contained in:
parent
55766d0404
commit
cbf315b76f
1 changed files with 4 additions and 0 deletions
|
@ -12,6 +12,10 @@ app.use(bodyParser.json());
|
||||||
app.use(bodyParser.urlencoded({extended: true}));
|
app.use(bodyParser.urlencoded({extended: true}));
|
||||||
app.use(cookieParser())
|
app.use(cookieParser())
|
||||||
|
|
||||||
|
app.use((req, res, next) => {
|
||||||
|
console.log(`${req.ip} requested ${req.url}`)
|
||||||
|
next()
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
const frontendPath = {
|
const frontendPath = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue