First device based on ‘optical thermodynamics’ can route light without switches