Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 62f0843

Browse files
author
Filip Ilievski
authored
Update README.md
1 parent 40be993 commit 62f0843

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

week1/README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ Week 1 outline
1414
4. Asynchronous callbacks
1515
5. HTTP server
1616
6. Localhost
17-
7. npm
18-
8. The assignment
17+
7. Error codes
18+
8. npm
19+
9. The assignment
1920

2021
This week's homework
2122

@@ -44,11 +45,16 @@ http://localhost:8080/add
4445
// /remove
4546
// Response: "ok" in html format
4647
// This should subtract 1 ƒrom the current state
47-
http://localhost:8080/subtract
48+
http://localhost:8080/remove
4849
4950
// /reset
5051
// Response: "ok" in html format
5152
// 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
5258
http://localhost:8080/subtract
5359
```
5460

0 commit comments

Comments
 (0)