Created
May 16, 2013 21:24
-
-
Save thiagofm/5595224 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hi guys. I have a factory that returns a resource like this: | |
return $resource('/api/:key.json', {key: '@key'}, { | |
'delete': { method: 'DELETE' } | |
}); | |
when I do: | |
Key.delete(pair, function (response) { | |
console.log(response); | |
}) | |
With pair being: | |
e {key: "dasdasdasdas", bytes: "10", expires_at: "2013-05-14 20:53:47 -0300", expired: true, $$hashKey: "00J"…} | |
It requests to the url: | |
DELETE http://localhost:9292/api/dasdasdasdas.json?$$hashKey=00J&bytes=10&expired=true&expires_at=2013-05-14+20:53:47+-0300 | |
Instead of | |
DELETE http://localhost:9292/api/dasdasdasdas.json | |
How to fix it? Thanks a lot! I'm developing an open source memcached manager in Ruby with a angular.js -- feel free to offer me some help & engage on it! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment