don't runn public resources listener on not api routes