Prerequisites
Issue
This snippet starts correctly:
const fastify = require('fastify')({ logger: true })
const handler = async (request, reply) => {
return { hello: request.params.foo }
}
fastify.get(/^\/(donations|skills|blogs)/, handler)
fastify.listen(8080)
There is one error: the regExp on the route's URL.
In this case, I think we should throw an error.
Note that find-my-way is receiving a string because we are composing its route input checking the prefix etc..
Do you agree?
Prerequisites
Issue
This snippet starts correctly:
There is one error: the regExp on the route's URL.
In this case, I think we should throw an error.
Note that find-my-way is receiving a string because we are composing its route input checking the
prefixetc..Do you agree?