GeezerVison is showing github.com — fix code blocks · msolov/fullstack-javascript@88048b8
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: chapter7/chapter7.md +4-4Lines changed: 4 additions & 4 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -238,8 +238,8 @@ db.open(function(error, connection) { |
238 | 238 | ``` |
239 | 239 |
|
240 | 240 | To check that we have the connection, we need to handle `error`. Also, |
241 | | -let's get the admin object with `db.admin``(``)` and fetch the list of |
242 | | -databases with `listDatabases``()`: |
| 241 | +let's get the admin object with `db.admin()` and fetch the list of |
| 242 | +databases with `listDatabases()`: |
243 | 243 |
|
244 | 244 | ``` |
245 | 245 | var db=new Db ('test', new Server(host, port, {})) |
@@ -513,7 +513,7 @@ endpoints/routes. We need to fetch the documents on GET |
513 | 513 | }) |
514 | 514 | ``` |
515 | 515 |
|
516 | | -On the POST `/messages/``create.json`, we inserting the document: |
| 516 | +On the POST `/messages/create.json`, we inserting the document: |
517 | 517 |
|
518 | 518 | ``` |
519 | 519 | } else if (request.method === 'POST' && request.url === '/messages/create.json') { |
@@ -554,7 +554,7 @@ To test via CURL terminal commands run: |
554 | 554 | Or open your browser at the http://locahost:1337/messages/list.json |
555 | 555 | location. |
556 | 556 |
|
557 | | -It should give you an empty array: `[]``,` which is fine. Then POST a |
| 557 | +It should give you an empty array: `[]`, which is fine. Then POST a |
558 | 558 | new message: |
559 | 559 |
|
560 | 560 | `$ curl -d "username=BOB&message=test" http://localhost:5000/messages/create.json` |
|