Change routes definition to array