Skip to content

Instantly share code, notes, and snippets.

@kieran
Created May 6, 2010 00:04
Show Gist options
  • Save kieran/391616 to your computer and use it in GitHub Desktop.
Save kieran/391616 to your computer and use it in GitHub Desktop.
@@ -82,7 +82,9 @@ var Router = function () {
var r = _resourceTypes[i];
this.match('/' + resource + (r.path || '') + '.:extension', r.method).to(
{ controller: controllerName, action: r.action});
- }
+ // no extension, rely on accept headers
+ this.match('/' + resource + (r.path || ''), r.method).to(
+ { controller: controllerName, action: r.action}); }
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment