0

is there a way for me to hook res.render("view") function right before it executes?

Purpose: I want to hook it and check if the user is on mobile if yes, then edit render page to res.render("mobile/" + view); if not on mobile, just render that one.

Shryder
  • 53
  • 2
  • 11

0 Answers0