From 9501d84a12a8ef5e1887bbda6a2379a98e8cbba3 Mon Sep 17 00:00:00 2001 From: Hanif Bali Date: Sun, 28 Feb 2016 22:30:20 +0100 Subject: [PATCH] Typo on put? Why isnt there a put function and why are they two post? --- src/angular-sails-io.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/angular-sails-io.js b/src/angular-sails-io.js index 197e345..e6ce814 100644 --- a/src/angular-sails-io.js +++ b/src/angular-sails-io.js @@ -304,10 +304,10 @@ angular.module('angularSails.io', []) }); }; - SailsSocket.prototype.post = function (url, data) { + SailsSocket.prototype.put = function (url, data) { return this._request({ - method: 'post', + method: 'put', url: url, data: data });