title: How do I specify various URLs in a backbone app?
body: <p>I need one of my backbone models to hit a variety of URLs depending on the type of action being performed. How do I determine the action within the URL function so that I can specify the appropriate URL? For example:</p>
  
  <p>DELETE: /myapipath/itemtype/id/<br/>
  POST: /myapipath/special-path/<br/>
  GET: /myapipath/special-path/?code=ABC</p>
  
  <p>I know how to tell the difference between a POST and everything else: this.isNew()</p>
  
  <p>But how do I tell the difference between a DELETE and a GET in a custom model.url function?</p>
  
  <p>Please don't suggest that I change the server-side api. That isn't up to me.</p>
  
  <p>Thanks!</p>