Monday 26 December 2016

action on image request

Hey, so I've got an express server with a "/gif/gif1.gif" route. which serves a page with a gif from my public folder. I would like to execute an action every time the gif gets requested, how can I do it? I tried with router.get("/gif/gif1.gif", function(req, res){ function(){ .... } res.render(...) }but it doesn't seem to work, any suggestion?

Submitted December 26, 2016 at 02:13PM by utopy

No comments:

Post a Comment