Add more robust regexes for URL matching.
Write route segments and values into evnt.details.
Extract details obj creation into function.
Break after matching a route.