diff options
author | Azul <azul@riseup.net> | 2012-11-20 12:43:34 +0100 |
---|---|---|
committer | Azul <azul@riseup.net> | 2012-11-20 12:43:34 +0100 |
commit | 635ea47f1c19d7985a8f5107c070ae19edf9dd54 (patch) | |
tree | 6332895341bf68c1f618feed8ee9f9a02ef4aaff /src/jqueryRest.js | |
parent | 443a9d3aa5e66f98d7f701e04967620781f3012c (diff) |
all request should go to absolute paths
They should be independent of the url we're serving the page from
Diffstat (limited to 'src/jqueryRest.js')
-rw-r--r-- | src/jqueryRest.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/jqueryRest.js b/src/jqueryRest.js index c4b0161..1a60385 100644 --- a/src/jqueryRest.js +++ b/src/jqueryRest.js @@ -3,16 +3,16 @@ srp.remote = (function(){ // we do not fetch the salt from the server function register(session) { - return $.post("users.json", { user: session.signup() }); + return $.post("/users.json", { user: session.signup() }); } function handshake(session) { - return $.post("sessions.json", session.handshake()); + return $.post("/sessions.json", session.handshake()); } function authenticate(session) { return $.ajax({ - url: "sessions/" + session.getI() + ".json", + url: "/sessions/" + session.getI() + ".json", type: 'PUT', data: {client_auth: session.getM()} }); |