reorder actions in routes and api controllers