   @spec api(remote_node :: map, path :: String.t) :: String.t | :error
   def api(remote_node, path) do
     remote_node
-    |> call("/api" <> path)
+    |> call("#{@remote_url_prefix}/api" <> path)
   end
 
   @spec socket_proxy(atom | map) :: {pid, String.t} | {:error, String.t}


  def metrics(remote_node = %{local?: false}) do
    remote_node
    |> call("/metrics/n/local")
  end

  def metrics(%{local?: true}) do

    local?: false,
  ]

  @remote_url_prefix Application.get_env(:wobserver, :remote_url_prefix, "")

  @spec call(map, endpoint :: String.t) :: String.t | :error
  defp call(%{host: host, port: port}, endpoint) do
    request =
