i got the following node.js / express.js method:
app.post('/pin/save/:latitude/:longitude', function(req, res) {
...
}
the values that get assigne to latitude and longitude include dots, e.g. 16.33245 / 46.28473. the problem is, express.js tells me that it can’t GET that url. removing the dots it works… any advice how i can get express to accept the dots in the route?
thanks
Do you gave a route defined for get in addition to the one for post? I tried this and it worked fine:
with:
gave me: