1

I'm using echo-labstack and I'm implementing a JWT validation. I'd like the validating route to be unprotected by the JWT middleware but the route is a route like '/validate/:token'.

Is there a way to match this particular route without having to unprotect all routes that start with '/validate/'?

2
  • For now as a quick fix i ended up doing 2 groups with echo.Group(), one for protected routes and one for unprotected. Doesn't feel very clean though Commented Jun 18, 2023 at 17:59
  • Two groups would be the normal approach. Why doesn't it seem clean? Commented Jun 19, 2023 at 8:31

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.