title: how to config proxy.config.json for angular
body: <p>I use a proxy.config.json for the http-calls.</p>
  
  <p>my example:</p>
  
  <pre><code> "/api/countries/*": {
      "target": "http://localhost:8084/countries",
      "secure": false,
      "changeOrigin": true,
      "pathRewrite": {
        "^/api/countries": ""
      },
      "logLevel": "debug"
    }
  }
  </code></pre>
  
  <p>I have to call <a href="http://localhost:8084/countries" rel="nofollow noreferrer">http://localhost:8084/countries</a>. (works fine) and
  <a href="http://localhost:8084/countries/textParam" rel="nofollow noreferrer">http://localhost:8084/countries/textParam</a></p>
  
  <p>The latter is not proxied. it is rewritten to just: /textParam</p>
  
  <p>[HPM] Rewriting path from "/api/countries/textParam" to "/textParam"</p>
  
  <p>And the http.put-request looses the textParam.</p>
  
  <p>[HPM] PUT /api/countries/textParam ~> <a href="http://localhost:8084/countries" rel="nofollow noreferrer">http://localhost:8084/countries</a></p>
  
  <p>I could not find a doc that helped me.</p>
  
  <p>how do I have to enhance my config?</p>
  
  <p>thanx for helping.</p>