Skip to content

Commit 487780f

Browse files
committed
Fix #2893 for gh-pages, pending long-term fix
1 parent 2089b7a commit 487780f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+317
-317
lines changed

archive/v1.0.0/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,13 +211,13 @@ <h3 id="routing">Routing</h3>
211211
<hr>
212212
<h3 id="xhr">XHR</h3>
213213
<p>Basically, XHR is just a way to talk to a server.</p>
214-
<p>Let&#39;s change our click counter to make it save data on a server. For the server, we&#39;ll use <a href="http://rem-rest-api.herokuapp.com">REM</a>, a mock REST API designed for toy apps like this tutorial.</p>
214+
<p>Let&#39;s change our click counter to make it save data on a server. For the server, we&#39;ll use <a href="http://mithril-rem.fly.dev">REM</a>, a mock REST API designed for toy apps like this tutorial.</p>
215215
<p>First we create a function that calls <code>m.request</code>. The <code>url</code> specifies an endpoint that represents a resource, the <code>method</code> specifies the type of action we&#39;re taking (typically the <code>PUT</code> method <a href="https://en.wiktionary.org/wiki/upsert">upserts</a>), <code>data</code> is the payload that we&#39;re sending to the endpoint and <code>withCredentials</code> means to enable cookies (a requirement for the REM API to work)</p>
216216
<pre><code class="lang-javascript">var count = 0
217217
var increment = function() {
218218
m.request({
219219
method: &quot;PUT&quot;,
220-
url: &quot;//rem-rest-api.herokuapp.com/api/tutorial/1&quot;,
220+
url: &quot;//mithril-rem.fly.dev/api/tutorial/1&quot;,
221221
data: {count: count + 1},
222222
withCredentials: true,
223223
})

archive/v1.0.0/simple-application.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ <h1 id="simple-application">Simple application</h1>
112112

113113
module.exports = User
114114
</code></pre>
115-
<p>Then we can add an <code>m.request</code> call to make an XHR request. For this tutorial, we&#39;ll make XHR calls to the <a href="http://rem-rest-api.herokuapp.com/">REM</a> API, a mock REST API designed for rapid prototyping. This API returns a list of users from the <code>GET http://rem-rest-api.herokuapp.com/api/users</code> endpoint. Let&#39;s use <code>m.request</code> to make an XHR request and populate our data with the response of that endpoint.</p>
115+
<p>Then we can add an <code>m.request</code> call to make an XHR request. For this tutorial, we&#39;ll make XHR calls to the <a href="http://mithril-rem.fly.dev/">REM</a> API, a mock REST API designed for rapid prototyping. This API returns a list of users from the <code>GET http://mithril-rem.fly.dev/api/users</code> endpoint. Let&#39;s use <code>m.request</code> to make an XHR request and populate our data with the response of that endpoint.</p>
116116
<pre><code class="lang-javascript">// src/models/User.js
117117
var m = require(&quot;mithril&quot;)
118118

@@ -121,7 +121,7 @@ <h1 id="simple-application">Simple application</h1>
121121
loadList: function() {
122122
return m.request({
123123
method: &quot;GET&quot;,
124-
url: &quot;http://rem-rest-api.herokuapp.com/api/users&quot;,
124+
url: &quot;http://mithril-rem.fly.dev/api/users&quot;,
125125
withCredentials: true,
126126
})
127127
.then(function(result) {
@@ -320,7 +320,7 @@ <h1 id="simple-application">Simple application</h1>
320320
loadList: function() {
321321
return m.request({
322322
method: &quot;GET&quot;,
323-
url: &quot;http://rem-rest-api.herokuapp.com/api/users&quot;,
323+
url: &quot;http://mithril-rem.fly.dev/api/users&quot;,
324324
withCredentials: true,
325325
})
326326
.then(function(result) {
@@ -340,7 +340,7 @@ <h1 id="simple-application">Simple application</h1>
340340
loadList: function() {
341341
return m.request({
342342
method: &quot;GET&quot;,
343-
url: &quot;http://rem-rest-api.herokuapp.com/api/users&quot;,
343+
url: &quot;http://mithril-rem.fly.dev/api/users&quot;,
344344
withCredentials: true,
345345
})
346346
.then(function(result) {
@@ -352,7 +352,7 @@ <h1 id="simple-application">Simple application</h1>
352352
load: function(id) {
353353
return m.request({
354354
method: &quot;GET&quot;,
355-
url: &quot;http://rem-rest-api.herokuapp.com/api/users/:id&quot;,
355+
url: &quot;http://mithril-rem.fly.dev/api/users/:id&quot;,
356356
data: {id: id},
357357
withCredentials: true,
358358
})
@@ -434,7 +434,7 @@ <h1 id="simple-application">Simple application</h1>
434434
loadList: function() {
435435
return m.request({
436436
method: &quot;GET&quot;,
437-
url: &quot;http://rem-rest-api.herokuapp.com/api/users&quot;,
437+
url: &quot;http://mithril-rem.fly.dev/api/users&quot;,
438438
withCredentials: true,
439439
})
440440
.then(function(result) {
@@ -446,7 +446,7 @@ <h1 id="simple-application">Simple application</h1>
446446
load: function(id) {
447447
return m.request({
448448
method: &quot;GET&quot;,
449-
url: &quot;http://rem-rest-api.herokuapp.com/api/users/:id&quot;,
449+
url: &quot;http://mithril-rem.fly.dev/api/users/:id&quot;,
450450
data: {id: id},
451451
withCredentials: true,
452452
})
@@ -458,7 +458,7 @@ <h1 id="simple-application">Simple application</h1>
458458
save: function() {
459459
return m.request({
460460
method: &quot;PUT&quot;,
461-
url: &quot;http://rem-rest-api.herokuapp.com/api/users/:id&quot;,
461+
url: &quot;http://mithril-rem.fly.dev/api/users/:id&quot;,
462462
data: User.current,
463463
withCredentials: true,
464464
})

archive/v1.0.1/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,13 +212,13 @@ <h3 id="routing">Routing</h3>
212212
<hr>
213213
<h3 id="xhr">XHR</h3>
214214
<p>Basically, XHR is just a way to talk to a server.</p>
215-
<p>Let&#39;s change our click counter to make it save data on a server. For the server, we&#39;ll use <a href="http://rem-rest-api.herokuapp.com">REM</a>, a mock REST API designed for toy apps like this tutorial.</p>
215+
<p>Let&#39;s change our click counter to make it save data on a server. For the server, we&#39;ll use <a href="http://mithril-rem.fly.dev">REM</a>, a mock REST API designed for toy apps like this tutorial.</p>
216216
<p>First we create a function that calls <code>m.request</code>. The <code>url</code> specifies an endpoint that represents a resource, the <code>method</code> specifies the type of action we&#39;re taking (typically the <code>PUT</code> method <a href="https://en.wiktionary.org/wiki/upsert">upserts</a>), <code>data</code> is the payload that we&#39;re sending to the endpoint and <code>withCredentials</code> means to enable cookies (a requirement for the REM API to work)</p>
217217
<pre><code class="lang-javascript">var count = 0
218218
var increment = function() {
219219
m.request({
220220
method: &quot;PUT&quot;,
221-
url: &quot;//rem-rest-api.herokuapp.com/api/tutorial/1&quot;,
221+
url: &quot;//mithril-rem.fly.dev/api/tutorial/1&quot;,
222222
data: {count: count + 1},
223223
withCredentials: true,
224224
})

archive/v1.0.1/simple-application.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ <h1 id="simple-application">Simple application</h1>
112112

113113
module.exports = User
114114
</code></pre>
115-
<p>Then we can add an <code>m.request</code> call to make an XHR request. For this tutorial, we&#39;ll make XHR calls to the <a href="http://rem-rest-api.herokuapp.com/">REM</a> API, a mock REST API designed for rapid prototyping. This API returns a list of users from the <code>GET https://rem-rest-api.herokuapp.com/api/users</code> endpoint. Let&#39;s use <code>m.request</code> to make an XHR request and populate our data with the response of that endpoint.</p>
115+
<p>Then we can add an <code>m.request</code> call to make an XHR request. For this tutorial, we&#39;ll make XHR calls to the <a href="http://mithril-rem.fly.dev/">REM</a> API, a mock REST API designed for rapid prototyping. This API returns a list of users from the <code>GET https://mithril-rem.fly.dev/api/users</code> endpoint. Let&#39;s use <code>m.request</code> to make an XHR request and populate our data with the response of that endpoint.</p>
116116
<pre><code class="lang-javascript">// src/models/User.js
117117
var m = require(&quot;mithril&quot;)
118118

@@ -121,7 +121,7 @@ <h1 id="simple-application">Simple application</h1>
121121
loadList: function() {
122122
return m.request({
123123
method: &quot;GET&quot;,
124-
url: &quot;https://rem-rest-api.herokuapp.com/api/users&quot;,
124+
url: &quot;https://mithril-rem.fly.dev/api/users&quot;,
125125
withCredentials: true,
126126
})
127127
.then(function(result) {
@@ -320,7 +320,7 @@ <h1 id="simple-application">Simple application</h1>
320320
loadList: function() {
321321
return m.request({
322322
method: &quot;GET&quot;,
323-
url: &quot;https://rem-rest-api.herokuapp.com/api/users&quot;,
323+
url: &quot;https://mithril-rem.fly.dev/api/users&quot;,
324324
withCredentials: true,
325325
})
326326
.then(function(result) {
@@ -340,7 +340,7 @@ <h1 id="simple-application">Simple application</h1>
340340
loadList: function() {
341341
return m.request({
342342
method: &quot;GET&quot;,
343-
url: &quot;https://rem-rest-api.herokuapp.com/api/users&quot;,
343+
url: &quot;https://mithril-rem.fly.dev/api/users&quot;,
344344
withCredentials: true,
345345
})
346346
.then(function(result) {
@@ -352,7 +352,7 @@ <h1 id="simple-application">Simple application</h1>
352352
load: function(id) {
353353
return m.request({
354354
method: &quot;GET&quot;,
355-
url: &quot;https://rem-rest-api.herokuapp.com/api/users/:id&quot;,
355+
url: &quot;https://mithril-rem.fly.dev/api/users/:id&quot;,
356356
data: {id: id},
357357
withCredentials: true,
358358
})
@@ -439,7 +439,7 @@ <h1 id="simple-application">Simple application</h1>
439439
loadList: function() {
440440
return m.request({
441441
method: &quot;GET&quot;,
442-
url: &quot;https://rem-rest-api.herokuapp.com/api/users&quot;,
442+
url: &quot;https://mithril-rem.fly.dev/api/users&quot;,
443443
withCredentials: true,
444444
})
445445
.then(function(result) {
@@ -451,7 +451,7 @@ <h1 id="simple-application">Simple application</h1>
451451
load: function(id) {
452452
return m.request({
453453
method: &quot;GET&quot;,
454-
url: &quot;https://rem-rest-api.herokuapp.com/api/users/:id&quot;,
454+
url: &quot;https://mithril-rem.fly.dev/api/users/:id&quot;,
455455
data: {id: id},
456456
withCredentials: true,
457457
})
@@ -463,7 +463,7 @@ <h1 id="simple-application">Simple application</h1>
463463
save: function() {
464464
return m.request({
465465
method: &quot;PUT&quot;,
466-
url: &quot;https://rem-rest-api.herokuapp.com/api/users/:id&quot;,
466+
url: &quot;https://mithril-rem.fly.dev/api/users/:id&quot;,
467467
data: User.current,
468468
withCredentials: true,
469469
})

archive/v1.1.0-rc.1/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,13 +212,13 @@ <h3 id="routing">Routing</h3>
212212
<hr>
213213
<h3 id="xhr">XHR</h3>
214214
<p>Basically, XHR is just a way to talk to a server.</p>
215-
<p>Let&#39;s change our click counter to make it save data on a server. For the server, we&#39;ll use <a href="http://rem-rest-api.herokuapp.com">REM</a>, a mock REST API designed for toy apps like this tutorial.</p>
215+
<p>Let&#39;s change our click counter to make it save data on a server. For the server, we&#39;ll use <a href="http://mithril-rem.fly.dev">REM</a>, a mock REST API designed for toy apps like this tutorial.</p>
216216
<p>First we create a function that calls <code>m.request</code>. The <code>url</code> specifies an endpoint that represents a resource, the <code>method</code> specifies the type of action we&#39;re taking (typically the <code>PUT</code> method <a href="https://en.wiktionary.org/wiki/upsert">upserts</a>), <code>data</code> is the payload that we&#39;re sending to the endpoint and <code>withCredentials</code> means to enable cookies (a requirement for the REM API to work)</p>
217217
<pre><code class="lang-javascript">var count = 0
218218
var increment = function() {
219219
m.request({
220220
method: &quot;PUT&quot;,
221-
url: &quot;//rem-rest-api.herokuapp.com/api/tutorial/1&quot;,
221+
url: &quot;//mithril-rem.fly.dev/api/tutorial/1&quot;,
222222
data: {count: count + 1},
223223
withCredentials: true,
224224
})

archive/v1.1.0-rc.1/simple-application.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ <h1 id="simple-application">Simple application</h1>
112112

113113
module.exports = User
114114
</code></pre>
115-
<p>Then we can add an <code>m.request</code> call to make an XHR request. For this tutorial, we&#39;ll make XHR calls to the <a href="http://rem-rest-api.herokuapp.com/">REM</a> API, a mock REST API designed for rapid prototyping. This API returns a list of users from the <code>GET https://rem-rest-api.herokuapp.com/api/users</code> endpoint. Let&#39;s use <code>m.request</code> to make an XHR request and populate our data with the response of that endpoint.</p>
115+
<p>Then we can add an <code>m.request</code> call to make an XHR request. For this tutorial, we&#39;ll make XHR calls to the <a href="http://mithril-rem.fly.dev/">REM</a> API, a mock REST API designed for rapid prototyping. This API returns a list of users from the <code>GET https://mithril-rem.fly.dev/api/users</code> endpoint. Let&#39;s use <code>m.request</code> to make an XHR request and populate our data with the response of that endpoint.</p>
116116
<pre><code class="lang-javascript">// src/models/User.js
117117
var m = require(&quot;mithril&quot;)
118118

@@ -121,7 +121,7 @@ <h1 id="simple-application">Simple application</h1>
121121
loadList: function() {
122122
return m.request({
123123
method: &quot;GET&quot;,
124-
url: &quot;https://rem-rest-api.herokuapp.com/api/users&quot;,
124+
url: &quot;https://mithril-rem.fly.dev/api/users&quot;,
125125
withCredentials: true,
126126
})
127127
.then(function(result) {
@@ -320,7 +320,7 @@ <h1 id="simple-application">Simple application</h1>
320320
loadList: function() {
321321
return m.request({
322322
method: &quot;GET&quot;,
323-
url: &quot;https://rem-rest-api.herokuapp.com/api/users&quot;,
323+
url: &quot;https://mithril-rem.fly.dev/api/users&quot;,
324324
withCredentials: true,
325325
})
326326
.then(function(result) {
@@ -340,7 +340,7 @@ <h1 id="simple-application">Simple application</h1>
340340
loadList: function() {
341341
return m.request({
342342
method: &quot;GET&quot;,
343-
url: &quot;https://rem-rest-api.herokuapp.com/api/users&quot;,
343+
url: &quot;https://mithril-rem.fly.dev/api/users&quot;,
344344
withCredentials: true,
345345
})
346346
.then(function(result) {
@@ -352,7 +352,7 @@ <h1 id="simple-application">Simple application</h1>
352352
load: function(id) {
353353
return m.request({
354354
method: &quot;GET&quot;,
355-
url: &quot;https://rem-rest-api.herokuapp.com/api/users/:id&quot;,
355+
url: &quot;https://mithril-rem.fly.dev/api/users/:id&quot;,
356356
data: {id: id},
357357
withCredentials: true,
358358
})
@@ -439,7 +439,7 @@ <h1 id="simple-application">Simple application</h1>
439439
loadList: function() {
440440
return m.request({
441441
method: &quot;GET&quot;,
442-
url: &quot;https://rem-rest-api.herokuapp.com/api/users&quot;,
442+
url: &quot;https://mithril-rem.fly.dev/api/users&quot;,
443443
withCredentials: true,
444444
})
445445
.then(function(result) {
@@ -451,7 +451,7 @@ <h1 id="simple-application">Simple application</h1>
451451
load: function(id) {
452452
return m.request({
453453
method: &quot;GET&quot;,
454-
url: &quot;https://rem-rest-api.herokuapp.com/api/users/:id&quot;,
454+
url: &quot;https://mithril-rem.fly.dev/api/users/:id&quot;,
455455
data: {id: id},
456456
withCredentials: true,
457457
})
@@ -463,7 +463,7 @@ <h1 id="simple-application">Simple application</h1>
463463
save: function() {
464464
return m.request({
465465
method: &quot;PUT&quot;,
466-
url: &quot;https://rem-rest-api.herokuapp.com/api/users/:id&quot;,
466+
url: &quot;https://mithril-rem.fly.dev/api/users/:id&quot;,
467467
data: User.current,
468468
withCredentials: true,
469469
})

archive/v1.1.0/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,13 +212,13 @@ <h3 id="routing"><a href="#routing">Routing</a></h3>
212212
<hr>
213213
<h3 id="xhr"><a href="#xhr">XHR</a></h3>
214214
<p>Basically, XHR is just a way to talk to a server.</p>
215-
<p>Let&#39;s change our click counter to make it save data on a server. For the server, we&#39;ll use <a href="http://rem-rest-api.herokuapp.com">REM</a>, a mock REST API designed for toy apps like this tutorial.</p>
215+
<p>Let&#39;s change our click counter to make it save data on a server. For the server, we&#39;ll use <a href="http://mithril-rem.fly.dev">REM</a>, a mock REST API designed for toy apps like this tutorial.</p>
216216
<p>First we create a function that calls <code>m.request</code>. The <code>url</code> specifies an endpoint that represents a resource, the <code>method</code> specifies the type of action we&#39;re taking (typically the <code>PUT</code> method <a href="https://en.wiktionary.org/wiki/upsert">upserts</a>), <code>data</code> is the payload that we&#39;re sending to the endpoint and <code>withCredentials</code> means to enable cookies (a requirement for the REM API to work)</p>
217217
<pre><code class="lang-javascript">var count = 0
218218
var increment = function() {
219219
m.request({
220220
method: &quot;PUT&quot;,
221-
url: &quot;//rem-rest-api.herokuapp.com/api/tutorial/1&quot;,
221+
url: &quot;//mithril-rem.fly.dev/api/tutorial/1&quot;,
222222
data: {count: count + 1},
223223
withCredentials: true,
224224
})

0 commit comments

Comments
 (0)