Slash (/) in http in params?

I know I can setup a http in node like /api/:name and whatever is provided after api/ I can find in msg.req.params.name.

However, this does not work in name contains a slash, like name/me.

I see that in Express I can use name(.*) according to one web site, but is there a way to do this in Node Red?

(I want to avoid created 100 http in nodes for all possible urls, since I'm just passing these urls to another service so don't need to treat each differently)

Thanks in advance.

Have you tried name(.*) ?

I can't remember if that's precisely the right syntax, but you can use pretty much any valid express path definition in the http in node.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.