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 ``` diff --git a/get-started/nodejs/develop.md b/get-started/nodejs/develop.md index a45d980a9d..36d8fe78a6 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" }) }) 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 ``` diff --git a/language/nodejs/develop.md b/language/nodejs/develop.md index ac922d2049..2ab2852a8d 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" }) })