Adding format constraint to matches in routes