Closed carlocorradini closed 4 years ago
https://github.com/jfromaniello/express-unless/issues/19#issuecomment-285142465
You would need to use Regex
example - { url: /\/v1\/stores\/domain/i, methods: ['GET'] },
I just saw your SO link, instead of trying to identify a UUID string
Try and achieve a /api/v1/auth/verify/*
with regex
@aiveneh Unfortunately I can't.I have to exclude only that specific endpoint with a Regex for UUID v4. I tried many Regex but none worked. Can you help me:disappointed_relieved:? Thanks:persevere:
Try this regex
{ url: /\/api\/v1\/auth\/verify/i, methods: ['POST'] }
I need help to exclude from a JWT protected route the path to /api/v1/auth/verify/:uuid where :uuid is a UUID v4. I've tried different regex from StackOverflow but none worked.
Here is my code:
Thanks in advance.