Routes and middleware working