Changed array to regex

passing array to routes will be removed in express 4