Make routing middleware actually work.