File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 33# Project: Skill-Sharing Website
44
55{{quote {author: "Margaret Fuller", chapter: true}
6-
6+
77If you have knowledge, let others light their candles at it.
88
99quote}}
@@ -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
365365where it should look for files. The handler function accepts ` request `
366366and ` response ` parameters and can be passed directly to ` createServer `
367367to 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
369369another function.
370370
371371``` {includeCode: ">code/skillsharing/skillsharing_server.js"}
Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments