Reorder routes to put root before resources