   @moduledoc false
 
   alias Phoenix.Router.Route
-  alias Phoenix.Socket
   alias Plug.Conn
 
   @anno (if :erlang.system_info(:otp_release) >= '19' do

    end
  end

  def url(_router, %Socket{endpoint: endpoint}) do
    endpoint.url()
  end


        static_url(private.phoenix_endpoint, path)
      end

      def static_url(%_{endpoint: endpoint} = conn, path) do
        static_url(endpoint, path)
      end

