Skip to content

Commit 04337de

Browse files
committed
Integrate tech editing for Chapter 21
1 parent ed12fd9 commit 04337de

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

21_skillsharing.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Project: Skill-Sharing Website
44

55
{{quote {author: "Margaret Fuller", chapter: true}
6-
6+
77
If you have knowledge, let others light their candles at it.
88

99
quote}}
@@ -158,7 +158,7 @@ A `GET` request to `/talks` returns a JSON document like this:
158158
[{"title": "Unituning",
159159
"presenter": "Jamal",
160160
"summary": "Modifying your cycle for extra style",
161-
"comment": []}]}
161+
"comments": []}]}
162162
```
163163

164164
{{index "PUT method", URL}}
@@ -365,7 +365,7 @@ request handler function. We use the `root` option to tell the server
365365
where it should look for files. The handler function accepts `request`
366366
and `response` parameters and can be passed directly to `createServer`
367367
to create a server that serves _only_ files. We want to first check
368-
for requests that we handle specially, though, so we wrap it in
368+
for requests that we should handle specially, though, so we wrap it in
369369
another function.
370370

371371
```{includeCode: ">code/skillsharing/skillsharing_server.js"}

code/solutions/21_1_disk_persistence.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@ SkillShareServer.prototype.updated = function() {
2323

2424
writeFile(fileName, JSON.stringify(this.talks));
2525
};
26+
27+
// The line that starts the server must be changed to
28+
new SkillShareServer(loadTalks()).start(8000);

0 commit comments

Comments
 (0)