File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,9 @@ Week 1 outline
14
14
4 . Asynchronous callbacks
15
15
5 . HTTP server
16
16
6 . Localhost
17
- 7 . npm
18
- 8 . The assignment
17
+ 7 . Error codes
18
+ 8 . npm
19
+ 9 . The assignment
19
20
20
21
This week's homework
21
22
@@ -44,11 +45,16 @@ http://localhost:8080/add
44
45
// /remove
45
46
// Response: "ok" in html format
46
47
// This should subtract 1 ƒrom the current state
47
- http://localhost:8080/subtract
48
+ http://localhost:8080/remove
48
49
49
50
// /reset
50
51
// Response: "ok" in html format
51
52
// This should set the state back to 10
53
+ http://localhost:8080/reset
54
+
55
+ // Any other URL
56
+ // Response: return error code 404: Not found with a friendly message
57
+ // and do not change the state variable
52
58
http://localhost:8080/subtract
53
59
```
54
60
You can’t perform that action at this time.
0 commit comments