Simple route middleware