title: Custom API call on Azure Mobile App Service
body: <p>I have HTML/JS client trying to access APIController on Azure Mobile App service.</p>
  
  <p>Following is my code</p>
  
  <pre><code>var _client = new WindowsAzure.MobileServiceClient("https://myapp.azurewebsites.net/");
  
  var pp = _client.invokeApi("/Lookup/GetTransactionType", {
      body: null,
      method: "get",
      parameters: { TenantID: 1 },
      headers: {
          "ZUMO-API-VERSION": "2.0.0",
          "Content-Type":"application/json",
          "Cache-Control":"false",
          "x-zumo-auth": "tada"
      }
  }).done(function (results) {
      var message = results.results.count;
      }, function (error) {
          alert(error.message)
      });
  </code></pre>
  
  <p>The issue here is that my api's are published as such :</p>
  
  <blockquote>
    <p><a href="https://myapp.azurewebsites.net/Lookup/GetTransactionType?TenantID=" rel="nofollow noreferrer">https://myapp.azurewebsites.net/Lookup/GetTransactionType?TenantID=</a>{{TenantID}}</p>
  </blockquote>
  
  <p>But I get NOT FOUND error in client since its looking for following URL :</p>
  
  <blockquote>
    <p>(XHR)GET - <a href="https://myapp.azurewebsites.net/api/Lookup/GetTransactionType?TenantID=1" rel="nofollow noreferrer">https://myapp.azurewebsites.net/api/Lookup/GetTransactionType?TenantID=1</a></p>
  </blockquote>
  
  <p>How can I eliminate the <strong><em>/api</em></strong> in the URI?</p>