I have the below logic in my code -
/myApp/:id - route to router A
/myApp - route to router B
I have the following regex in my code
/myApp/logs/:id(*)
Clearly if my URL ends with a /, it will end up going to router A, and return a 404 while ideally I want it to be routed to router B since it's valid to have a trailing slash. In other words, how do I write my regex so it ignores if it's a forward slash alone, and routes only if it matches everything after that in the id component.