add 'segment' pattern for route matching