Node.js - Get URL parameter via Jade

1

I have the following url http://localhost:3000/user/index/1 , I would like to be able to get the last parameter. I tried with - var name = window.location.pathname; putting in the .jade file and it did not work, but if it is possible to do a redirect with sending parameters like in .render() .

    
asked by anonymous 13.08.2015 / 04:24

1 answer

0

Solution:

notification: request.params.message 

This mode is deprecated:

notification: request.param('message','')
    
13.08.2015 / 19:45