title: Match all GET url using angular-mocks for backendless
body: <p>I am writing a frontend without backend ajax for now. I am using <code>angular-mocks</code> to simulate API call like this:</p>
  
  <pre><code>$httpBackend.when('GET', '/somelink').respond(function(method, url, data) {
    //do something
  });
  </code></pre>
  
  <p>However, if the ajax passes <code>params: {id:12345}</code>, it will append to the url to be <code>'/somelink?id=12345'</code>. That doesn't <em>catch</em> by the <code>when('GET', '/somelink')</code></p>
  
  <p>Is there a way to use RegEx or some trick to work around this? Just so that regardless of what is inside <code>params</code>, the <code>respond()</code> still gets called?</p>
  
  <p>Thanks.</p>
  
  <p><strong>UPDATE 1:</strong></p>
  
  <p>I cannot use <code>.whenGET</code> because my backendless system has <code>POST</code> and <code>PUT</code> as well. So I need to keep it generic. This two params <code>.when('GET', '/somelink')</code> are actually variables in my code.</p>
  
  <p>Since <code>'/somelink'</code> is a variable in another <code>JSON</code>, having RegEx <code>/\/somelink/</code> in JSON doesn't seem to work. At least that's what I see for now.</p>