I'd want it to satisfy /one/two/three/four and /one/two/three/four/five, etc.
I have tried
fastify.get("/:foo/:bar/:baz+", require("./routes/baz"))
and
fastify.get("/:foo/:bar/(.*)", require("./routes/baz"))
to no avail. Any ideas?
Hello!
You can use a wildcard, eg:
fastify.get('/:foo/:bar/*', (req, reply) => {
console.log(req.params) // { foo: 'one', bar: 'two', *: 'three/four' }
})
To all the lurkers who needed this stupid question to be asked,

No question is a stupid question :)
Most helpful comment
To all the lurkers who needed this stupid question to be asked,