From 5e654452e19e6be5ef8d7cf369490d30eb7b3442 Mon Sep 17 00:00:00 2001 From: spacejack Date: Sun, 9 Apr 2017 15:19:24 -0400 Subject: [PATCH] Remove url interpolation from tutorial app --- docs/simple-application.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/simple-application.md b/docs/simple-application.md index b226aa2c..0342096d 100644 --- a/docs/simple-application.md +++ b/docs/simple-application.md @@ -392,8 +392,7 @@ var User = { load: function(id) { return m.request({ method: "GET", - url: "https://rem-rest-api.herokuapp.com/api/users/:id", - data: {id: id}, + url: "https://rem-rest-api.herokuapp.com/api/users/" + id, withCredentials: true, }) .then(function(result) { @@ -508,8 +507,7 @@ var User = { load: function(id) { return m.request({ method: "GET", - url: "https://rem-rest-api.herokuapp.com/api/users/:id", - data: {id: id}, + url: "https://rem-rest-api.herokuapp.com/api/users/" + id, withCredentials: true, }) .then(function(result) { @@ -520,7 +518,7 @@ var User = { save: function() { return m.request({ method: "PUT", - url: "https://rem-rest-api.herokuapp.com/api/users/:id", + url: "https://rem-rest-api.herokuapp.com/api/users/" + User.current.id, data: User.current, withCredentials: true, })