DEV Community

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

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/ ;-)