Add route checker middleware