Lucas Lemos
Lucas Lemos
@gaby using if and no +lastIndex
Let me commit so you guys can check it out
Using switch in @gaby solution makes it go back to around 190 ns/op
@ReneWerner87 I think I wrote it badly, let me check it again
@ReneWerner87 I have just added a test for livez with a final slash (/livez/) and it is indeed not matching. I'll commit it right now so you can check it...
@gaby I have just added this case, checking for /livez/ and /readyz/
@ReneWerner87 that's something I have talked about in the issue, every route with /livez and /readyz will be matched in case of using the middleware globally. Also, if a user...
In this case the nested path would work actually, but only if the user placed the middleware into a route group
Alright, I'll be checking out ways to improve the route matching globally, thanks for all the help! @ReneWerner87 and @gaby I'll see if I can work something out by today,...
I can check this out! I'll be making sure that the method can be thread-safe and make a PR