title: Angularjs resource builds wrong resource url
body: <p>Resource:    </p>
  
  <pre><code>angular.module('TicketService', ['ngResource'])
         .factory('Ticket', ['$resource', function($resource){
      var Ticket = $resource('/api/tickets/:id1/:action/:id2',
      {
          id1:'@id'
      }, 
  
      { 
          list: {
              method: 'GET'
          },
          listByOwner: {
              method: 'GET',
              params: {
                  action:'owner',
                  id1:"@id"
              }
          }
          update: {
              method: 'PUT',
              params:{}
          }
      }); 
      return ticket;
  }]); 
  </code></pre>
  
  <p>Query:</p>
  
  <pre><code>$scope.userTickets = Ticket.listByOwner({
      id :  $rootScope.user.id
  }, function(){
      //success
  }, function(response){});
  </code></pre>
  
  <p>Result:</p>
  
  <p><img src="https://i.stack.imgur.com/gsSXe.png" alt="enter image description here"></p>
  
  <p>Angularjs builds a wrong url, <code>/api/tickets</code> but it should be <code>/api/tickets/2/owner</code>. Any ideas why?</p>