Add route middleware