Skip to content

Commit 5ebcb33

Browse files
committed
minor fixes in http_json_api_server problem description
1 parent af3d58b commit 5ebcb33

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

exercises/http_json_api_server/problem.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The JSON response should contain only 'hour', 'minute' and 'second' properties.
1414
}
1515
```
1616

17-
Add second endpoint for the path '/api/unixtime' which accepts the same query string but returns UNIX epoch time in milliseconds (the number of milliseconds since 1 Jan 1970 00:00:00 UTC) under the property 'unixtime'. For example:
17+
Add a second endpoint for the path '/api/unixtime' which accepts the same query string, but returns UNIX epoch time in milliseconds (the number of milliseconds since 1 Jan 1970 00:00:00 UTC) under the property 'unixtime'. For example:
1818

1919
```json
2020
{ "unixtime": 1376136615474 }
@@ -27,7 +27,8 @@ Your server should listen on the port provided by the first argument to your pro
2727

2828
The `request` object from an HTTP server has a `url` property that you will need to use to *"route"* your requests for the two endpoints.
2929

30-
You can parse the URL and query string using the Node core 'url' module. `url.parse(request.url, true)` will parse content of request.url and provide you with an object with helpful properties.
30+
You can parse the URL and query string using the Node core 'url' module.
31+
`url.parse(request.url, true)` will parse content of `request.url` and provide you with an object with helpful properties.
3132

3233
For example, on the command prompt, type:
3334

0 commit comments

Comments
 (0)