adding inject into EchoEndpointResource