DEV Community

Discussion on: My first real frontend app in 13 years, and it's actually just a joke

Collapse
 
marcoschlieben profile image
Marco Schlieben

So, there is no logging?
There will be no way you know, what mood she was in on June, 22nd, 2019?

Buddy this information could be essential! ;-)

  • Marco
Collapse
 
habereder profile image
Raphael Habereder

I wanted to say "no, because I don't know how", but as it turns out, I already log all requests in the express-service.

Call it beginners luck:

router.post("/bannerUpdate",(req, res) => {
    console.log(req)
    this.bannerMessage=req.body.bannerMessage;
    res.end("Banner was updated to " + req.body.bannerMessage);
});

All I need is to attach a date :D

Collapse
 
marcoschlieben profile image
Marco Schlieben

I bow to you, friend \o/ ;-)