diff --git a/docs/labs/input2.html b/docs/labs/input2.html index 2ed03c85..b7e15dba 100644 --- a/docs/labs/input2.html +++ b/docs/labs/input2.html @@ -43,9 +43,9 @@

Background

The code below sets up handlers for a get request on path -/invoices. +/parts. This code could be triggered, for example, by requesting -http://localhost:3000/part?id=AX-794-7 +http://localhost:3000/parts?id=AX-794-7 (if it was running at localhost and responding to port 3000). If there are no validation errors, the code is supposed to show the part id. If there is a validation error, it responds with HTTP @@ -144,7 +144,7 @@

Interactive Lab ()

app.get('/parts', - (req, res) => { // Execute this code if /invoices seen + (req, res) => { // Execute this code if /parts seen const result = validationResult(req); // Retrieve errors if (result.isEmpty()) { // No errors const data = matchedData(req); // Retrieve matching data