endpoint subroute specific middleware