I am trying to find a way to match a route when request contains multiple path and URL always end with /end
For example:
domain.com/api/path1/path2/path3/end
domain.com/api/path1/path2/path3/path4/end
I tried [Route("api/{p:regex(([[\\w-]]*\\/){{1,}})}end")]
but this didn't work.
Any recommendation?