From 5add977c7119ed8e261716288019ff71111b9758 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Szab=C3=B3?= Date: Thu, 18 Feb 2021 22:23:46 +0100 Subject: [PATCH 1/4] Fix syntax highlighting --- language/nodejs/develop.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/language/nodejs/develop.md b/language/nodejs/develop.md index d0cd915deb..31a8a9b58c 100644 --- a/language/nodejs/develop.md +++ b/language/nodejs/develop.md @@ -200,7 +200,7 @@ Let’s change the source code and then set a breakpoint. Add the following code above the existing `server.use()` statement, and save the file. -```node +```js server.use( '/foo', (req, res) => { return res.json({ "foo": "bar" }) }) From e122a11c55b6832dd3e2106f10596fdf4973119b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Szab=C3=B3?= Date: Thu, 18 Feb 2021 22:26:49 +0100 Subject: [PATCH 2/4] Fix syntax highlighting --- language/nodejs/build-images.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/language/nodejs/build-images.md b/language/nodejs/build-images.md index 0a1601ec4f..b7781956dd 100644 --- a/language/nodejs/build-images.md +++ b/language/nodejs/build-images.md @@ -37,7 +37,7 @@ Now, let’s add some code to handle our REST requests. We’ll use a mock serve Open this working directory in your IDE and add the following code into the `server.js` file. -```node +```js const ronin = require( 'ronin-server' ) const mocks = require( 'ronin-mocks' ) @@ -72,7 +72,7 @@ $ curl http://localhost:8000/test Switch back to the terminal where our server is running. You should now see the following requests in the server logs. -```node +``` 2020-XX-31T16:35:08:4260 INFO: POST /test 2020-XX-31T16:35:21:3560 INFO: GET /test ``` From ab9ee946572006118355733f92b01b43f367b5bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Szab=C3=B3?= Date: Thu, 18 Feb 2021 22:27:33 +0100 Subject: [PATCH 3/4] Fix syntax highlighting --- get-started/nodejs/build-images.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/get-started/nodejs/build-images.md b/get-started/nodejs/build-images.md index 35e9e732f9..d5df766b1b 100644 --- a/get-started/nodejs/build-images.md +++ b/get-started/nodejs/build-images.md @@ -35,7 +35,7 @@ Now, let’s add some code to handle our REST requests. We’ll use a mock serve Open this working directory in your IDE and add the following code into the `server.js` file. -```node +```js const ronin = require( 'ronin-server' ) const mocks = require( 'ronin-mocks' ) @@ -72,7 +72,7 @@ $ curl http://localhost:8000/test Switch back to the terminal where our server is running. You should now see the following requests in the server logs. -```node +``` 2020-XX-31T16:35:08:4260 INFO: POST /test 2020-XX-31T16:35:21:3560 INFO: GET /test ``` From 15bdb766b6f358b180c3de1e64e25ac76bf258b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Szab=C3=B3?= Date: Thu, 18 Feb 2021 22:27:57 +0100 Subject: [PATCH 4/4] Fix syntax highlighting --- get-started/nodejs/develop.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/get-started/nodejs/develop.md b/get-started/nodejs/develop.md index 118c878a1a..f64eded909 100644 --- a/get-started/nodejs/develop.md +++ b/get-started/nodejs/develop.md @@ -184,7 +184,7 @@ Let’s change the source code and then set a breakpoint. Add the following code to the server.js file on line 19 and save the file. -```node +```js server.use( '/foo', (req, res) => { return res.json({ "foo": "bar" }) })