I created a new project with Express and Nodejs, where I defined a "/ status" route. Each time this route is accessed, you should run a routine in the /routes/status.js
script. Example: If I run an F5 in the browser with the address http://192.168.137.2:3000/status
, it would have to execute /routes/status.js
, but this does not happen.
I imagine that this is behavior is the natural of Express. However, how do I get it to run in this way that I have described or otherwise in any way?