Answer the question
In order to leave comments, you need to log in
How to write a regular expression in a route?
How to use regex in node.js route?
@Get([
'/:category(opinions)/:asset([a-z0-9]{1, 7})'
])
'/:category(opinions)/:asset([a-z0-9]+)'
Answer the question
In order to leave comments, you need to log in
Might be useful to someone
'/:category(opinions)/:asset([a-z0-9]{1\,3})'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question