title: Blazor Web Assembly and Custom API Routes
body: <p>I need a custom route to an API on Project.server</p>
  <p>I have 3 GET Api Requests
  Locations 
  Locations/id </p>
  <p>I need to Create a 3rd one, a Custom one</p>
  <p>GetLocationsByCompany with a the ID of the company passed though.
  Company/id</p>
  <p>I have this</p>
  <pre><code>[HttpGet]
  [Route(&quot;GetLocationsByCompany&quot;)]
  public async Task&lt;ActionResult&lt;IEnumerable&lt;EntityLocation&gt;&gt;&gt; GetLocationsByCompany(string id)
  
  </code></pre>
  <p>this is how i call it, LocationsController is the controller</p>
  <pre><code>var locations = await Http.GetFromJsonAsync&lt;Locations[]&gt;(&quot;api/Locations/GetLocationsByCompany/&quot; + ID); 
  </code></pre>
  <p>Web Assembly just gives me the error, 500 not very helpful, the other message is shows is &quot;There is Nothing to Show here&quot;</p>
  <p>Debugging in Chrome Does show the correct ID Being sent and the and the request looks good.</p>
  <p>The brake point on the action in the controller is not getting hit. Therefore it leaves me with the thought my routing is wrong.</p>
  <p>where am i going wrong ?</p>