fix(examples): change quickschedule plugin backend URL to updated version

This commit is contained in:
Drew Regitsky 2015-11-24 00:30:29 -08:00
parent f248fe9c60
commit fb22e6eeb2
5 changed files with 5 additions and 5 deletions

View file

@ -19,7 +19,7 @@ class AvailabilityDraftExtension extends DraftStoreExtension
data.attendees = participants.map (p) ->
name: p.name, email: p.email, isSender: p.isMe()
console.log "Sending request!\n",JSON.stringify data
serverUrl = "https://sendavail.herokuapp.com/register-events"
serverUrl = "https://quickschedule.herokuapp.com/register-events"
request.post {url: serverUrl, body: JSON.stringify(data)}, (error, resp, data) =>
console.log(error,resp,data)

View file

@ -91,7 +91,7 @@ method. Here, were registering the events before we send the draft.</p>
data.attendees = participants.map (p) -&gt;
<span class="hljs-attribute">name</span>: p.name, <span class="hljs-attribute">email</span>: p.email, <span class="hljs-attribute">isSender</span>: c.isMe()
<span class="hljs-built_in">console</span>.log <span class="hljs-string">"Sending request!\n"</span>,JSON.stringify data
serverUrl = <span class="hljs-string">"https://sendavail.herokuapp.com/register-events"</span>
serverUrl = <span class="hljs-string">"https://quickschedule.herokuapp.com/register-events"</span>
request.post {<span class="hljs-attribute">url</span>: serverUrl, <span class="hljs-attribute">body</span>: JSON.stringify(data)}, <span class="hljs-function"><span class="hljs-params">(error, resp, data)</span> =&gt;</span>
<span class="hljs-built_in">console</span>.log(error,resp,data)

View file

@ -209,7 +209,7 @@ module.exports =
# The URL points to the event page with this time slot selected
eventUrl = url.format({
protocol: "https"
host: "sendavail.herokuapp.com"
host: "quickschedule.herokuapp.com"
pathname: "/event/#{e.serverKey}"
})
times.appendNode("div")

View file

@ -19,7 +19,7 @@ class AvailabilityDraftExtension extends DraftStoreExtension
data.attendees = participants.map (p) ->
name: p.name, email: p.email, isSender: p.isMe()
console.log "Sending request!\n",JSON.stringify data
serverUrl = "https://sendavail.herokuapp.com/register-events"
serverUrl = "https://quickschedule.herokuapp.com/register-events"
request.post {url: serverUrl, body: JSON.stringify(data)}, (error, resp, data) =>
console.log(error,resp,data)

View file

@ -209,7 +209,7 @@ module.exports =
# The URL points to the event page with this time slot selected
eventUrl = url.format({
protocol: "https"
host: "sendavail.herokuapp.com"
host: "quickschedule.herokuapp.com"
pathname: "/event/#{e.serverKey}"
})
times.appendNode("div")